Re: Trying to understand Tuple Header

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "Subramanian,Ramachandran" <ramachandran(dot)subramanian(at)alte-leipziger(dot)de>
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Trying to understand Tuple Header
Date: 2026-05-03 19:48:47
Message-ID: CAKFQuwbRKbjk4JPefgT6s64hN-i47a1nZO6O4j-+h48er6uyvw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, May 3, 2026 at 12:25 PM Subramanian,Ramachandran <
ramachandran(dot)subramanian(at)alte-leipziger(dot)de> wrote:

> The binary value of t_infomask for both the tuples are identical, but they
> produce different column values for xmin_commited, xmin_aborted …. in the
> SQL !!!.
>
>
>
> Am I not seeing something that is obvious?
>

You didn't re-check the infomask data after running the select query,
instead assuming the bits didn't change. They did. SELECT is not a
read-only operation, it participates in optimizations. Called "writing
hint bits". Manually evaluating the various tests against the data you did
show would have proven that the pre-select-data had zeros where the second
query claims there are ones.

David J.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2026-05-03 22:50:23 Re: Trying to understand Tuple Header
Previous Message Subramanian,Ramachandran 2026-05-03 19:25:14 AW: Trying to understand Tuple Header