mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Restart logical replication launcher when killed
Author: Yugo Nagata <nagata@sraoss.co.jp>
This commit is contained in:
@ -2854,8 +2854,9 @@ ProcessInterrupts(void)
|
|||||||
ereport(DEBUG1,
|
ereport(DEBUG1,
|
||||||
(errmsg("logical replication launcher shutting down")));
|
(errmsg("logical replication launcher shutting down")));
|
||||||
|
|
||||||
/* The logical replication launcher can be stopped at any time. */
|
/* The logical replication launcher can be stopped at any time.
|
||||||
proc_exit(0);
|
* Use exit status 1 so the background worker is restarted. */
|
||||||
|
proc_exit(1);
|
||||||
}
|
}
|
||||||
else if (RecoveryConflictPending && RecoveryConflictRetryable)
|
else if (RecoveryConflictPending && RecoveryConflictRetryable)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user