Christopher Petrilli <petrilli(at)gmail(dot)com> writes:
> On 7/19/05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> How *exactly* are you invoking psql?
> It is a subprocess of a Python process, driven using a pexpect
> interchange. I send the COPY command, then wait for the '=#' to come
> back.
Some weird interaction with pexpect maybe? Try adding "-n" (disable
readline) to the psql command switches.
regards, tom lane