On 24 March 2017 at 05:39, Thomas Munro <thomas.munro@enterprisedb.com> wrote:
> Fujii-san for the idea of tracking write and flush lag too
You mentioned wishing that logical replication would update sent lag
as the decoding position.
It appears to do just that already; see the references to restart_lsn
in StartLogicalReplication, and the update of sentPtr in
XLogSendLogical .
It's a bit misleading, since it hasn't *sent* anything, it buffers it
until commit. But it's useful.
-- Craig Ringer http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services