pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: libpq: Notice errors a backend may have sent just before dying.
Date: Thu, 12 Nov 2015 09:29:29 -0500
Message-ID: <32700.1447338569@sss.pgh.pa.us> (raw)
In-Reply-To: <E1Zwsge-0006XK-Py@gemulon.postgresql.org>
References: <E1Zwsge-0006XK-Py@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Robert Haas <rhaas@postgresql.org> writes:
> libpq: Notice errors a backend may have sent just before dying.
> At least since the introduction of Hot Standby, the backend has
> sometimes sent fatal errors even when no client query was in
> progress, assuming that the client would receive it.  However,
> pqHandleSendFailure was not in sync with this assumption, and
> only tries to catch notices and notifies.  Add a parseInput call
> to the loop there to fix.

Just for the record, this patch changes no behavior whatsoever.
It could only make a difference if the backend were still actively
sending data, which certainly isn't so in the case claimed by the
commit message.  Moreover, removing the comment that explains why
only NOTICE and NOTIFY messages will be eaten doesn't make it not so.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (7+ messages)  latest in thread

Message-ID: <32700.1447338569@sss.pgh.pa.us>
Permalink:  ../32700.1447338569@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32700.1447338569@sss.pgh.pa.us

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rhaas@postgresql.org
  Subject: Re: pgsql: libpq: Notice errors a backend may have sent just before dying.
  In-Reply-To: <32700.1447338569@sss.pgh.pa.us>
  References: <E1Zwsge-0006XK-Py@gemulon.postgresql.org> <32700.1447338569@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