pgsql: Fix statistics reporting in logical replication workers

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix statistics reporting in logical replication workers
Date: 2017-05-08 16:11:25
Message-ID: E1d7lFt-00076O-1H@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)jelinek(at)2ndquadrant(dot)com>
Reported-by: Erik Rijkers <er(at)xs4all(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-05-08 16:57:58 pgsql: Last-minute updates for release notes.
Previous Message Tom Lane 2017-05-08 15:19:30 pgsql: Fix possibly-uninitialized variable.