On Fri, Dec 2, 2016 at 10:29 AM, Peter Eisentraut <pete...@gmx.net> wrote:
> Use latch instead of select() in walreceiver
> Replace use of poll()/select() by WaitLatchOrSocket(), which is more
> portable and flexible.
> Also change walreceiver to use its procLatch instead of a custom latch.
> From: Petr Jelinek <p...@2ndquadrant.com>
+ rc = WaitLatchOrSocket(&MyProc->procLatch,
+ WL_POSTMASTER_DEATH | WL_SOCKET_READABLE |
+ if (rc & WL_POSTMASTER_DEATH)
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:
Sent via pgsql-committers mailing list (firstname.lastname@example.org)
To make changes to your subscription: