Re: Logical replication launcher never been restarted when terminated

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Logical replication launcher never been restarted when terminated
Date: 2017-06-21 19:17:20
Message-ID: 40eda5a9-d127-44fa-86c4-b18ed0c3d2df@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/21/17 13:03, Yugo Nagata wrote:
> As I report in another thread[1], when the logical replication launcher
> is terminated by SIGTERM, it never been restarted and we need to restart
> the server to enable logical replication again.
>
> This is because the logical replication launcher exits with exitstatus 0,
> so if it exits with status 1 it is restarted by the postmaster normally.
> Attached is a simple patch to fix it in this way.

Fixed, thanks!

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Satyanarayana Narlapuram 2017-06-21 19:38:39 Re: Making server name part of the startup message
Previous Message Peter Eisentraut 2017-06-21 19:16:54 pgsql: Restart logical replication launcher when killed