diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-06-02 14:46:00 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-06-02 14:49:23 -0400 |
commit | 9fcf670c2efdf31233d429f557ab77937f0f1e6a (patch) | |
tree | 88653233cc978f0764fec508d85fc0a3c99ccaa8 /src/include/replication/logicalworker.h | |
parent | acbd8375e954774181b673a31b814e9d46f436a5 (diff) | |
download | postgresql-9fcf670c2efdf31233d429f557ab77937f0f1e6a.tar.gz postgresql-9fcf670c2efdf31233d429f557ab77937f0f1e6a.zip |
Fix signal handling in logical replication workers
The logical replication worker processes now use the normal die()
handler for SIGTERM and CHECK_FOR_INTERRUPTS() instead of custom code.
One problem before was that the apply worker would not exit promptly
when a subscription was dropped, which could lead to deadlocks.
Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>
Diffstat (limited to 'src/include/replication/logicalworker.h')
-rw-r--r-- | src/include/replication/logicalworker.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/replication/logicalworker.h b/src/include/replication/logicalworker.h index 3e0affa190b..5877a930f68 100644 --- a/src/include/replication/logicalworker.h +++ b/src/include/replication/logicalworker.h @@ -14,4 +14,6 @@ extern void ApplyWorkerMain(Datum main_arg); +extern bool IsLogicalWorker(void); + #endif /* LOGICALWORKER_H */ |