pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: walsender & parallelism
Date: Thu, 1 Jun 2017 14:11:13 +0200
Message-ID: <8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com> (raw)
In-Reply-To: <20170601040613.j3ww7s5aqhowiqcj@alap3.anarazel.de>
References: <20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de>
	<20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de>
	<a8b44e9f-6631-3f2c-377b-0f5671784baf@2ndquadrant.com>
	<13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com>
	<20170424232559.j5zuna3rpzksj26l@alap3.anarazel.de>
	<81eaca60-3f7b-6a21-5531-fd51ffbf3f63@2ndquadrant.com>
	<5fe9977b-1961-d663-004f-d138a74860ed@2ndquadrant.com>
	<0AD1D877-EFA4-4B11-A074-6B83D90402EA@anarazel.de>
	<e9621798-2d3b-6342-06df-6149e7297039@2ndquadrant.com>
	<b0cae230-066c-d5ee-b2d7-29ba44c142bb@2ndquadrant.com>
	<20170601040613.j3ww7s5aqhowiqcj@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 01/06/17 06:06, Andres Freund wrote:
> On 2017-05-31 23:51:08 -0400, Peter Eisentraut wrote:
>> I think the easiest and safest thing to do now is to just prevent
>> parallel plans in the walsender.  See attached patch.  This prevents the
>> hang in the select_parallel tests run under your new test setup.
> 
> I'm not quite sure I can buy this.  The lack of wired up signals has
> more problems than just hurting parallelism.  In fact, the USR1 thing
> seems like something that we actually should backpatch, rather than
> defer to v11.  I think there's some fair arguments to be made that we
> shouldn't do the refactoring right now - although I'm not sure about it
> - but just not fixing the bugs seems like a bad plan.
> 

I think the signal handling needs to be fixed. It does not have to be
done via large refactoring, but signals should be handled properly (= we
need to share SIGHUP/SIGUSR1 handling between postgres.c and walsender.c).

The rest can wait for PG11.

-- 
  Petr Jelinek                  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 (41+ messages)  latest in thread

Message-ID: <8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com>
Permalink:  ../8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com/
Also on:    postgresql.org/message-id/8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com

 · 

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-hackers@postgresql.org
  Cc: petr.jelinek@2ndquadrant.com, andres@anarazel.de, peter.eisentraut@2ndquadrant.com
  Subject: Re: walsender & parallelism
  In-Reply-To: <8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com>
  References: <20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de> <20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de> <a8b44e9f-6631-3f2c-377b-0f5671784baf@2ndquadrant.com> <13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com> <20170424232559.j5zuna3rpzksj26l@alap3.anarazel.de> <81eaca60-3f7b-6a21-5531-fd51ffbf3f63@2ndquadrant.com> <5fe9977b-1961-d663-004f-d138a74860ed@2ndquadrant.com> <0AD1D877-EFA4-4B11-A074-6B83D90402EA@anarazel.de> <e9621798-2d3b-6342-06df-6149e7297039@2ndquadrant.com> <b0cae230-066c-d5ee-b2d7-29ba44c142bb@2ndquadrant.com> <20170601040613.j3ww7s5aqhowiqcj@alap3.anarazel.de> <8d67240e-a84e-5c27-298c-72c8334448e8@2ndquadrant.com>

* 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