From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Cc: Petr Jelinek <petr@2ndquadrant.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: walsender & parallelism
Date: Mon, 24 Apr 2017 04:27:58 +0200
Message-ID: <b47945db-0a47-dca1-6754-a6d4849feabb@2ndquadrant.com> (raw)
In-Reply-To: <20170423234303.ljzdpcog2szyxbsm@alap3.anarazel.de>
References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de>
<e41081d2-080f-b612-2084-549fa652fae2@2ndquadrant.com>
<20170423234303.ljzdpcog2szyxbsm@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 24/04/17 01:43, Andres Freund wrote:
>
>> BTW while looking at the code, I don't understand why we call
>> latch_sigusr1_handler after calling SetLatch(MyLatch), shouldn't just
>> the SetLatch be enough (they both end up calling sendSelfPipeByte()
>> eventually)?
>
> Historic raisins - there didn't use to be a SetLatch in
> procsignal_sigusr1_handler. That changed when I whacked around catchup &
> notify to be based on latches ([1] and following).
>
> [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=59f71a0d0b56b2df48db4bf1738aece5551f7...
>
Okay, but why call both SetLatch and latch_sigusr1_handler? What does
that buy us?
--
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
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, petr@2ndquadrant.com, peter_e@gmx.net
Subject: Re: walsender & parallelism
In-Reply-To: <b47945db-0a47-dca1-6754-a6d4849feabb@2ndquadrant.com>
References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de> <e41081d2-080f-b612-2084-549fa652fae2@2ndquadrant.com> <20170423234303.ljzdpcog2szyxbsm@alap3.anarazel.de> <b47945db-0a47-dca1-6754-a6d4849feabb@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