Hannu Krosing <hannu@tm.ee> writes:
> It seems that this bug is still lurking in libpq:
> http://search.postgresql.org/pgsql-hackers/2004-09/msg00703.php
> Is anybody working on it, or should I try something myself, perhaps just
> replacing the lone recv() with pqsecure_read() ?
Go for it. The difficulty I think is testing that the failure path
actually does the right thing. Do you have the ability to provoke
the failure on demand?
regards, tom lane