Re: BUG #5837: PQstatus() fails to report lost connection - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5837: PQstatus() fails to report lost connection
Date
Msg-id 6379.1295882590@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5837: PQstatus() fails to report lost connection  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> On Sat, Jan 22, 2011 at 10:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> What did you do exactly?  testlibpq.c just uses PQexec(), and AFAICS the
>> connection status does end up BAD if the backend is terminated before a
>> PQexec starts.

> PFA.

Yeah, that was my first cut at it too, but it's not terribly interesting
because it doesn't tell you anything about what PQstatus says after the
first failed PQexec.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #5837: PQstatus() fails to report lost connection
Next
From: Tom Lane
Date:
Subject: Re: BUG #5837: PQstatus() fails to report lost connection