Fix statistics reporting in logical replication workers
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 8 May 2017 16:07:59 +0000 (12:07 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 8 May 2017 16:10:22 +0000 (12:10 -0400)
commit9a591c1bccc5edeb06b979c59f39753982131181
treeff6efe9bfa8642c3ba23ce5237a6362e30a90f68
parentb6576e5914d042bfad1c8629fe199f59b036c342
Fix statistics reporting in logical replication workers

This new arrangement ensures that statistics are reported right after
commit of transactions.  The previous arrangement didn't get this quite
right and could lead to assertion failures.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reported-by: Erik Rijkers <er@xs4all.nl>
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c