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 20220129004719.ucfd5cfnnx7flaih@alap3.anarazel.de
Whole thread Raw
In response to Re: Add last commit LSN to pg_last_committed_xact()  (Andres Freund <andres@anarazel.de>)
Responses Re: Add last commit LSN to pg_last_committed_xact()
List pgsql-hackers
On 2022-01-28 16:36:32 -0800, Andres Freund wrote:
> On 2022-01-28 18:43:57 -0500, James Coleman wrote:
> > Alternatively I see pg_attribute_aligned, but that's not defined
> > (AFAICT) on clang, for example, so I'm not sure that'd be acceptable?
> 
> clang should have it (it defines __GNUC__). The problem would be msvc, I
> think. Not sure if there's a way to get to a common way of defining it between
> gcc-like compilers and msvc (the rest is niche enough that we don't need to
> care about the efficiency I think).

Seems like it's doable:

https://godbolt.org/z/3c5573bTW



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Add last commit LSN to pg_last_committed_xact()
Next
From: Michael Paquier
Date:
Subject: Re: Is it correct to update db state in control file as "shutting down" during end-of-recovery checkpoint?