Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> Perhaps we should reduce psql's fgets() buffers to 256 bytes or less to
>> avoid this problem?
> Sure.
Belay that, per later report --- the bug is in Solaris' tty driver,
not in fgets.
regards, tom lane