Skip site navigation (1) Skip section navigation (2)

Re: libpq and connection failures

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jtv(at)xs4all(dot)nl
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: libpq and connection failures
Date: 2005-07-05 14:43:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
jtv(at)xs4all(dot)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

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

In response to


pgsql-interfaces by date

Next:From: jtvDate: 2005-07-06 07:39:12
Subject: Re: libpq and connection failures
Previous:From: jtvDate: 2005-07-05 13:48:18
Subject: libpq and connection failures

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group