Evidently you're using the newly-released readline 4.2.
Update to PG 7.1.1, or downgrade to readline 4.1.
regards, tom lane