From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed
Date: Wed, 21 Jun 2017 16:52:16 -0700
Message-ID: <20170621235216.qekl7ocapfxi3w2d@alap3.anarazel.de> (raw)
In-Reply-To: <CAB7nPqR=SYXnpkHLDUvViCcQHBSOe+YR=dHDsNu+HtsReuseUA@mail.gmail.com>
References: <E1dNl7W-00042O-Oq@gemulon.postgresql.org>
<CAB7nPqR=SYXnpkHLDUvViCcQHBSOe+YR=dHDsNu+HtsReuseUA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2017-06-22 08:46:35 +0900, Michael Paquier wrote:
> On Thu, Jun 22, 2017 at 4:16 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> > Restart logical replication launcher when killed
>
> - /* The logical replication launcher can be stopped at any time. */
> - proc_exit(0);
> + /* The logical replication launcher can be stopped at any time.
> + * Use exit status 1 so the background worker is restarted. */
> + proc_exit(1);
> I know I am noisy on the matter but... This comment format is not PG-like.
That's since been repaired by the new pgindent run. But what I'm a bit
confused about is why we're going for proc_exit() for replication
launchers when other types of processes simply FATAL out? Seems like a
weird change. It's not like it's not log-worthy if somebody kills the
launcher?
- Andres
--
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-committers@postgresql.org
Cc: andres@anarazel.de, michael.paquier@gmail.com, peter_e@gmx.net, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed
In-Reply-To: <20170621235216.qekl7ocapfxi3w2d@alap3.anarazel.de>
References: <E1dNl7W-00042O-Oq@gemulon.postgresql.org> <CAB7nPqR=SYXnpkHLDUvViCcQHBSOe+YR=dHDsNu+HtsReuseUA@mail.gmail.com> <20170621235216.qekl7ocapfxi3w2d@alap3.anarazel.de>
* 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