postgres.git / summary / log / commit / refs
commit f669c09989bda894d6ba01634ccb229f0687c08a
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Wed Jun 21 19:15:29 2017 +0000
Restart logical replication launcher when killed
Author: Yugo Nagata <nagata@sraoss.co.jp>
src/backend/tcop/postgres.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index fd6c9cf039d..fdc8c71a858 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2854,8 +2854,9 @@ ProcessInterrupts(void)
ereport(DEBUG1,
(errmsg("logical replication launcher shutting down")));
- /* 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);
}
else if (RecoveryConflictPending && RecoveryConflictRetryable)
{
[parent: e3860ffa4dd0]