pgsql: Lag tracking for logical replication

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Lag tracking for logical replication
Date: 2017-05-12 10:00:39
Message-ID: E1d97NH-0001Ki-56@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Lag tracking for logical replication

Lag tracking is called for each commit, but we introduce
a pacing delay to ensure we don't swamp the lag tracker.

Author: Petr Jelinek, with minor pacing delay code from me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/024711bb544645c8b1061e9f02b261e2e336981d

Modified Files
--------------
src/backend/replication/logical/logical.c | 34 ++++++++++++++-----
src/backend/replication/logical/logicalfuncs.c | 2 +-
src/backend/replication/pgoutput/pgoutput.c | 2 ++
src/backend/replication/slotfuncs.c | 3 +-
src/backend/replication/walsender.c | 45 ++++++++++++++++++++------
src/include/replication/logical.h | 15 ++++++---
src/include/replication/output_plugin.h | 1 +
7 files changed, 79 insertions(+), 23 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2017-05-12 10:47:29 pgsql: Avoid tests which crash the calling process on Windows
Previous Message Tom Lane 2017-05-11 22:09:34 pgsql: Doc fix: scale(numeric) returns integer, not numeric.