修复发布订阅死锁问题

This commit is contained in:
xue_meng_en
2022-04-16 16:27:37 +08:00
parent 7f97d633f1
commit d8b89ceea5
3 changed files with 16 additions and 14 deletions

View File

@ -6114,6 +6114,9 @@ void ProcessInterrupts(void)
/* The logical replication launcher can be stopped at any time. */
proc_exit(0);
} else if (IsLogicalWorker()) {
ereport(FATAL, (errcode(ERRCODE_ADMIN_SHUTDOWN),
errmsg("terminating logical replication worker due to administrator command")));
#endif
} else if (IsTxnSnapCapturerProcess()) {
ereport(FATAL,