Re: All-visible pages with valid prune xid are confusing - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: All-visible pages with valid prune xid are confusing
Date
Msg-id eaff7a34-84ca-46ff-bd62-49469f1231ec@iki.fi
Whole thread Raw
In response to Re: All-visible pages with valid prune xid are confusing  (Melanie Plageman <melanieplageman@gmail.com>)
Responses Re: All-visible pages with valid prune xid are confusing
List pgsql-hackers
On 02/12/2025 21:13, Melanie Plageman wrote:
> In terms of finding some XID to set it to, could we do what updates
> and deletes do and use the XLogRecord->xl_xid?

A prune record can have XLogRecord->xl_xid == InvalidTransactionId, if 
the transaction hasn't been assigned a transaction ID yet. I think 
ReadNextTransactionId() - 1 would work. (Using TransactionIdRetreat 
rather than plain - 1, of course)

- Heikki




pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: Early December Commitfest app release
Next
From: Andres Freund
Date:
Subject: Re: All-visible pages with valid prune xid are confusing