pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Restart logical replication launcher when killed
3+ messages / 3 participants
[nested] [flat]

* pgsql: Restart logical replication launcher when killed
@ 2017-06-21 19:16 Peter Eisentraut <peter_e@gmx.net>
  2017-06-21 23:46 ` Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2017-06-21 19:16 UTC (permalink / raw)
  To: pgsql-committers

Restart logical replication launcher when killed

Author: Yugo Nagata <nagata@sraoss.co.jp>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f669c09989bda894d6ba01634ccb229f0687c08a

Modified Files
--------------
src/backend/tcop/postgres.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed
  2017-06-21 19:16 pgsql: Restart logical replication launcher when killed Peter Eisentraut <peter_e@gmx.net>
@ 2017-06-21 23:46 ` Michael Paquier <michael.paquier@gmail.com>
  2017-06-21 23:52   ` Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2017-06-21 23:46 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

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.
-- 
Michael


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed
  2017-06-21 19:16 pgsql: Restart logical replication launcher when killed Peter Eisentraut <peter_e@gmx.net>
  2017-06-21 23:46 ` Re: [COMMITTERS] pgsql: Restart logical replication launcher when killed Michael Paquier <michael.paquier@gmail.com>
@ 2017-06-21 23:52   ` Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Andres Freund @ 2017-06-21 23:52 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Peter Eisentraut <peter_e@gmx.net>; PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-06-21 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21 19:16 pgsql: Restart logical replication launcher when killed Peter Eisentraut <peter_e@gmx.net>
2017-06-21 23:46 ` Michael Paquier <michael.paquier@gmail.com>
2017-06-21 23:52   ` Andres Freund <andres@anarazel.de>

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