git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: acbd837) | patch
Fix signal handling in logical replication workers
Fri, 2 Jun 2017 18:46:00 +0000 (14:46 -0400)
Fri, 2 Jun 2017 18:49:23 +0000 (14:49 -0400)
commit 9fcf670c2efdf31233d429f557ab77937f0f1e6a
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>
src/backend/replication/logical/launcher.c diff | blob | blame | history
src/backend/replication/logical/tablesync.c diff | blob | blame | history
src/backend/replication/logical/worker.c diff | blob | blame | history
src/backend/tcop/postgres.c diff | blob | blame | history
src/include/replication/logicalworker.h diff | blob | blame | history
src/include/replication/worker_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /