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

Lines changed: 3 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy