expose confirmed_flush for replication slots - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject expose confirmed_flush for replication slots
Date
Msg-id 559D1026.5080303@joh.to
Whole thread Raw
Responses Re: expose confirmed_flush for replication slots  (Marko Tiikkaja <marko@joh.to>)
List pgsql-hackers
Hi,

I had some trouble today with a misbehaving logical replication client
which had confirmed a flush of an LSN far into the future.  Debugging it
was a bit of a pain for a number of reasons, but I think the most
important one was that confirmed_flush isn't exposed in
pg_stat_replication_slots.  Attached patch exposes it, as
confirmed_flush_lsn (to make it look like restart_lsn; not sure whether
we should just keep the internal name or not).

Adding this one to the next commit fest, but any feedback welcome in the
meanwhile.


.m

Attachment

pgsql-hackers by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: pg_receivexlog --create-slot-if-not-exists
Next
From: Marko Tiikkaja
Date:
Subject: Re: expose confirmed_flush for replication slots