Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f669c09

Browse files
committed
Restart logical replication launcher when killed
Author: Yugo Nagata <nagata@sraoss.co.jp>
1 parent e3860ff commit f669c09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/tcop/postgres.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -2854,8 +2854,9 @@ ProcessInterrupts(void)
28542854
ereport(DEBUG1,
28552855
(errmsg("logical replication launcher shutting down")));
28562856

2857-
/* The logical replication launcher can be stopped at any time. */
2858-
proc_exit(0);
2857+
/* The logical replication launcher can be stopped at any time.
2858+
* Use exit status 1 so the background worker is restarted. */
2859+
proc_exit(1);
28592860
}
28602861
else if (RecoveryConflictPending && RecoveryConflictRetryable)
28612862
{

0 commit comments

Comments
 (0)