jtv@xs4all.nl writes:
> Is there any reason why pqReadData() (interfaces/libpq/fe-misc.c), if
> pqsecure_read() fails with an error that isn't special-cased as a
> transient one, returns -1 but leaves the connection state at
> CONNECTION_OK?
I think it's probably better to have the default assumption be
"connection possibly recoverable" than have it be "summarily kill
connection at first hint of trouble". The latter seems less robust
not more so.
regards, tom lane