Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YImcB-00016i-9I for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2015 23:10:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YImcA-0003s9-Gn for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Feb 2015 23:10:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YImc7-0003mz-S4 for pgsql-hackers@postgreSQL.org; Tue, 03 Feb 2015 23:10:35 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YImc3-0003Jn-AP for pgsql-hackers@postgreSQL.org; Tue, 03 Feb 2015 23:10:34 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id D48CD460002; Wed, 4 Feb 2015 00:10:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC71F6.dip0.t-ipconnect.de [93.220.113.246]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 8B752460002; Wed, 4 Feb 2015 00:10:23 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 09402100954; Wed, 4 Feb 2015 00:10:23 +0100 (CET) Date: Wed, 4 Feb 2015 00:10:22 +0100 From: Andres Freund To: Heikki Linnakangas Cc: PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Process 'die' interrupts while reading/writing from the client s Message-ID: <20150203231022.GA24976@awork2.anarazel.de> References: <54D14FE7.5070601@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54D14FE7.5070601@vmware.com> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015-02-04 00:47:03 +0200, Heikki Linnakangas wrote: > On 02/03/2015 11:51 PM, Andres Freund wrote: > >+ * This is called just after low-level writes. That might be after the read > >+ * finished successfully, or it was interrupted via interrupt. 'blocked' tells > >+ * us whether the > > Looks like you forgot to complete that sentence before pushing... > > Also, nightjar is unhappy with this: > > TRAP: FailedAssertion("!(InterruptHoldoffCount == 0 && CritSectionCount == > 0)", File: > "/pgbuild/root/HEAD/pgsql.build/../pgsql/src/backend/tcop/postgres.c", Line: > 574) > > I think that assertion in ProcessClientWriteInterrupt() should be simply > removed. ProcessClientWriteInterrupt() copes just fine, i.e. does nothing, > if we're in a critical section or interrupts are held. Yea, it really was just a brainfart on my endq. It's perfectly normal to be called that way during error handling... Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers