]> granicus.if.org Git - postgresql/commit
Lag tracking for logical replication
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 12 May 2017 09:50:56 +0000 (10:50 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 12 May 2017 09:50:56 +0000 (10:50 +0100)
commit024711bb544645c8b1061e9f02b261e2e336981d
tree8c0a7b85c0260c260ddd6cb89cd4ee578b56ab12
parentefa2c18f4e8a8ccc74d9005d960f4c1a2bf05ea9
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
src/backend/replication/logical/logical.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/pgoutput/pgoutput.c
src/backend/replication/slotfuncs.c
src/backend/replication/walsender.c
src/include/replication/logical.h
src/include/replication/output_plugin.h