From: Tom Lane <tgl@sss.pgh.pa.us>
To: jtv@xs4all.nl
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq and connection failures
Date: Tue, 05 Jul 2005 10:43:09 -0400
Message-ID: <13032.1120574589@sss.pgh.pa.us> (raw)
In-Reply-To: <21028.202.47.227.25.1120571298.squirrel@202.47.227.25>
References: <21028.202.47.227.25.1120571298.squirrel@202.47.227.25>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, jtv@xs4all.nl
Subject: Re: libpq and connection failures
In-Reply-To: <13032.1120574589@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox