Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwssa-000069-Hw for pgsql-committers@arkaria.postgresql.org; Thu, 12 Nov 2015 14:29:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZwssZ-0008GT-Uv for pgsql-committers@arkaria.postgresql.org; Thu, 12 Nov 2015 14:29:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwssZ-0008G0-9J for pgsql-committers@postgresql.org; Thu, 12 Nov 2015 14:29:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwssW-0002xt-5r; Thu, 12 Nov 2015 14:29:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tACETTMZ032701; Thu, 12 Nov 2015 09:29:29 -0500 From: Tom Lane To: Robert Haas cc: pgsql-committers@postgresql.org Subject: Re: pgsql: libpq: Notice errors a backend may have sent just before dying. In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Thu, 12 Nov 2015 14:17:16 +0000" Date: Thu, 12 Nov 2015 09:29:29 -0500 Message-ID: <32700.1447338569@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Robert Haas 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