pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver
Date: Sat, 3 Dec 2016 20:16:12 -0500
Message-ID: <b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqRA_cO_r_PLmRvFUtpvrTUeeBooXst1+oDecTPmTckp5A@mail.gmail.com>
References: <E1cCcfd-0008G5-2z@gemulon.postgresql.org>
	<CAB7nPqRA_cO_r_PLmRvFUtpvrTUeeBooXst1+oDecTPmTckp5A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 12/1/16 8:50 PM, Michael Paquier wrote:
> +           if (rc & WL_POSTMASTER_DEATH)
> +               exit(1);
> Hmm. We have always been very careful about not leaving immediately
> from libpqwalreceiver.c which is an independent shared library so as
> the WAL receiver can take cleanup actions. See here for more details:
> https://www.postgresql.org/message-id/CAEepm=0hg_FX7kdUhosTpJ_kPsUZw6k-7nuQNy-dGAOaetn_tA@mail.gmail...

walreceiver.c does the same thing.  The message you pointed out is not
exactly clear why that would be wrong.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, 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: <b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@2ndquadrant.com>
Permalink:  ../b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@2ndquadrant.com/
Also on:    postgresql.org/message-id/b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@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-committers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver
  In-Reply-To: <b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@2ndquadrant.com>
  References: <E1cCcfd-0008G5-2z@gemulon.postgresql.org> <CAB7nPqRA_cO_r_PLmRvFUtpvrTUeeBooXst1+oDecTPmTckp5A@mail.gmail.com> <b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@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