pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Set HEAP_XMAX_INVALID for tuples updated by aborted subtransacti
Date: Thu, 29 Oct 2026 17:11:26 +0900
Message-ID: <auL_rryxdqDO-HaB@paquier.xyz> (raw)
In-Reply-To: <CA+TgmoZrp4YX++=ifqBgpw6=KOsprd6+-gSQk87Je510D98KWw@mail.gmail.com>
References: <E1xL8zv-00000000ljm-3Qbc@gemulon.postgresql.org>
	<CA+TgmoZrp4YX++=ifqBgpw6=KOsprd6+-gSQk87Je510D98KWw@mail.gmail.com>

On Wed, Oct 28, 2026 at 03:32:44PM -0400, Robert Haas wrote:
> Uggh. I think that this is the right fix given that
> rewrite_heap_tuple() is documented to rely on hint bits being set for
> correctness, but it seems to me to be pretty questionable that we rely
> on hint bits being set for correctness. It's not going to be obvious
> to someone modifying HeapTupleSatisfiesVacuum() or
> HeapTupleSatisfiesVacuumHorizon() that rewrite_heap_tuple() critically
> depends on that, and even if we added a comment about that, somebody
> reading that comment might justifiably complain about our decision to
> create such a dependency.

As far as I know this is implied since 7b78474da356.  So it's been
around for some time...  It's really hard to miss, as the other thread
has proved.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (11+ messages)  latest in thread

Message-ID: <auL_rryxdqDO-HaB@paquier.xyz>
Permalink:  ../auL_rryxdqDO-HaB@paquier.xyz/
Also on:    postgresql.org/message-id/auL_rryxdqDO-HaB@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Set HEAP_XMAX_INVALID for tuples updated by aborted subtransacti
  In-Reply-To: <auL_rryxdqDO-HaB@paquier.xyz>
  References: <E1xL8zv-00000000ljm-3Qbc@gemulon.postgresql.org> <CA+TgmoZrp4YX++=ifqBgpw6=KOsprd6+-gSQk87Je510D98KWw@mail.gmail.com> <auL_rryxdqDO-HaB@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox