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>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9a591c1bccc5edeb06b979c59f39753982131181
Modified Files
--------------
src/backend/replication/logical/tablesync.c | 18 ++++++++++++++----
src/backend/replication/logical/worker.c | 2 +-
2 files changed, 15 insertions(+), 5 deletions(-)