Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver
Date
Msg-id b4be6ea7-1e88-1cd3-d179-e31985b3f2e9@2ndquadrant.com
Whole thread Raw
List pgsql-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.com

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



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Logical Replication WIP
Next
From: Peter Geoghegan
Date:
Subject: Re: Parallel tuplesort (for parallel B-Tree index creation)