]> granicus.if.org Git - postgresql/commit
Receive invalidation messages correctly in tablesync worker
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Jun 2017 15:37:47 +0000 (11:37 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 3 Jun 2017 15:40:05 +0000 (11:40 -0400)
commit66b84fa82f7318d8da75dbf754df16eb7b1f1037
treeaafbc89ec60952a30cfaa9ca4cf0b27d9552515e
parent3c9bc2157a4f465b3c070d1250597568d2dc285f
Receive invalidation messages correctly in tablesync worker

We didn't accept any invalidation messages until the whole sync process
had finished (because it flattens all the remote transactions in the
single one).  So the sync worker didn't learn about subscription
changes/drop until it has finished.  This could lead to "orphaned" sync
workers.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>
src/backend/replication/logical/worker.c