bob(dot)messer(at)l-3com(dot)com writes:
> 2) If I replace the libedit.so with the version in this rpm: libedit-2.11-2.20080712cvs.el5.x86_64.rpm, the command works.
> 3) if I edit the psql script to use the libreadline.so that is installed on the system (it's looking in the wrong place), the command works.
In that case you're dealing with a libedit bug. libedit has a lot of
known problems, especially if you're trying to use an old version as
it sounds like you might be. There's not a lot we can do about that.
regards, tom lane