Re: All-visible pages with valid prune xid are confusing

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Melanie Plageman <melanieplageman(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: All-visible pages with valid prune xid are confusing
Date: 2025-12-02 19:39:42
Message-ID: eaff7a34-84ca-46ff-bd62-49469f1231ec@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-12-02 19:49:13 Re: All-visible pages with valid prune xid are confusing
Previous Message Jelte Fennema-Nio 2025-12-02 19:34:33 Re: Early December Commitfest app release