pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: Re: Re: [COMMITTERS] pgsql: Process 'die' interrupts while reading/writing from the client s
Date: Wed, 4 Feb 2015 00:10:22 +0100
Message-ID: <20150203231022.GA24976@awork2.anarazel.de> (raw)
In-Reply-To: <54D14FE7.5070601@vmware.com>
References: <E1YIlNm-0006oo-7k@gemulon.postgresql.org>
	<54D14FE7.5070601@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (3+ messages)

Message-ID: <20150203231022.GA24976@awork2.anarazel.de>
Permalink:  ../20150203231022.GA24976@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20150203231022.GA24976@awork2.anarazel.de

 · 

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: andres@anarazel.de, hlinnakangas@vmware.com, pgsql-hackers@postgreSQL.org
  Subject: Re: [COMMITTERS] pgsql: Process 'die' interrupts while reading/writing from the client s
  In-Reply-To: <20150203231022.GA24976@awork2.anarazel.de>
  References: <E1YIlNm-0006oo-7k@gemulon.postgresql.org> <54D14FE7.5070601@vmware.com> <20150203231022.GA24976@awork2.anarazel.de>

* 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