Re: libpq and connection failures - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: libpq and connection failures
Date
Msg-id 13032.1120574589@sss.pgh.pa.us
Whole thread Raw
In response to libpq and connection failures  (jtv@xs4all.nl)
Responses Re: libpq and connection failures  (jtv@xs4all.nl)
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: jtv@xs4all.nl
Date:
Subject: libpq and connection failures
Next
From: jtv@xs4all.nl
Date:
Subject: Re: libpq and connection failures