Re: [HACKERS] Measuring replay lag - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] Measuring replay lag
Date
Msg-id CAMsr+YGEqcR6mLkGUZWvqaQ2MXXv1FtpW-fLQKfL6Vuo-L9Xig@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Measuring replay lag  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] WIP: Faster Expression Processing v4
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] ICU integration