From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Murray S. Kucherawy <msk@cloudmark.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5837: PQstatus() fails to report lost connection
Date: Mon, 24 Jan 2011 10:23:10 -0500
Message-ID: <6379.1295882590@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTikkjFMKoa6PQfJSc31Yn_M5+T3u7dRO4zUi-Bw2@mail.gmail.com>
References: <201101140136.p0E1aTFb017852@wwwmaster.postgresql.org>
<AANLkTinZAdPCX685ecg2_eVXJ1vDNXL4Ki-B1rFN=Z3h@mail.gmail.com>
<1950.1295754244@sss.pgh.pa.us>
<AANLkTikkjFMKoa6PQfJSc31Yn_M5+T3u7dRO4zUi-Bw2@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, msk@cloudmark.com
Subject: Re: BUG #5837: PQstatus() fails to report lost connection
In-Reply-To: <6379.1295882590@sss.pgh.pa.us>
References: <201101140136.p0E1aTFb017852@wwwmaster.postgresql.org> <AANLkTinZAdPCX685ecg2_eVXJ1vDNXL4Ki-B1rFN=Z3h@mail.gmail.com> <1950.1295754244@sss.pgh.pa.us> <AANLkTikkjFMKoa6PQfJSc31Yn_M5+T3u7dRO4zUi-Bw2@mail.gmail.com> <6379.1295882590@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