Re: Add last commit LSN to pg_last_committed_xact() - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Add last commit LSN to pg_last_committed_xact()
Date
Msg-id 20220119010546.sqhtj5jcnmubwhz7@alap3.anarazel.de
Whole thread Raw
In response to Re: Add last commit LSN to pg_last_committed_xact()  (James Coleman <jtc331@gmail.com>)
Responses Re: Add last commit LSN to pg_last_committed_xact()
List pgsql-hackers
Hi,

On 2022-01-18 18:31:42 -0500, James Coleman wrote:
> One other question on this: if we went with this would you expect a
> new function to parallel pg_last_committed_xact()?

I don't think I have an opinion the user interface aspect.


> Or allow the xid and lsn in the return of pg_last_committed_xact()
> potentially not to match (of course xid might also not be present if
> track_commit_timestamps isn't on)? Or would you expect the current xid and
> timestamp use the new infrastructure also?

When you say "current xid", what do you mean?

I think it might make sense to use the new approach for all of these.


Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: slowest tap tests - split or accelerate?
Next
From: Allie Crawford
Date:
Subject: Re: [Ext:] Re: Stream Replication not working