Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJcoi-0004uW-19 for pgsql-novice@arkaria.postgresql.org; Sun, 03 May 2026 19:49:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJcog-004QlN-2u for pgsql-novice@arkaria.postgresql.org; Sun, 03 May 2026 19:49:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJcog-004QlF-1h for pgsql-novice@lists.postgresql.org; Sun, 03 May 2026 19:49:26 +0000 Received: from mail-yx1-xb129.google.com ([2607:f8b0:4864:20::b129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wJcoe-000000001pa-1Lhg for pgsql-novice@lists.postgresql.org; Sun, 03 May 2026 19:49:25 +0000 Received: by mail-yx1-xb129.google.com with SMTP id 956f58d0204a3-65c2cd216c9so2176408d50.3 for ; Sun, 03 May 2026 12:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777837764; cv=none; d=google.com; s=arc-20240605; b=hHsXz3nmRyqtftifsRq0up8AdBbKPv03ETxr8on2t8e2pnlCyGEw2puY4NxcRoSHYT exs7/WpsfT+unwLVK/2gMa3/8o0V3pKeQI/uhmp0hFsr/L31pUXY+fIyj1X+A1hMbjOu UWAw25J3f2cgec7HLTnhV1Si75qlTv0rap2UeK5BXilt+avDpgZftE0sjYNl/EBEE/NO 9wd8expcrrdPEhr01t3oXmI6+dUmCOHwfdffnykoDkVKbkDwu4jLOXDFP98/xy9+FXn/ w0HqqUP+4G8kfuZnFMuFkhcpcH/GV8oO5R+YTtjrhlhhd5bKjtOUAerL5zLC78WEKaSh LHrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=UNjANo71707S593AsrE+F6UgPr5pDKG8KqtKEW6rq2Q=; fh=4YP8/ObuFdNE7FLzoa2GUFMCmfYVDd3/chevNTaOUVE=; b=VZ5Gz7EOGx+Ws8EpKp+Ig0H9ngbTdWUbTllE8A0TZbGTq3EKzuPJrD2xETa6fod02y NKlD/YlJp4Y7jRS/4sffOgM2tJvMzChZB3Mdq6ONPkAr0lS5A50tZ/3K0VRdJJc/b/v3 InRCRnkkJa8sxuCRObJ+nRbtxCEzhrErLlRHkLAKF/tRaOM3Ddn5nzarRbmXQQszyKK5 Jm7OxHDU2BwDsCDns+KjCrtMF82YPFKQ4P8LZUgGqz/f1Hb9Cf9KChGXbhTwxDHwOwD/ +hrpt3K3R8JX/bNwYrtpbocpGLBtiHu6amlDe8+FtM0DWk03WlvM+/4lZqAb0M12nMk8 TkoQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777837764; x=1778442564; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UNjANo71707S593AsrE+F6UgPr5pDKG8KqtKEW6rq2Q=; b=TsXE/EN5taW6VJG4VTfPXnqky6zPgIXsGH745fvL6igdFcLfRI0W26P9k3tOVbD6BC nF8O0L2uDslAmjry3rPWTJztZ0CUGBi/8knFFFdvt0JdsHD6SrzgfGxSL3WMoVNi+pzs RlAW0qW4Fu6ECzDr4NXiEAW9G7bTySMvJNJirVnc8iM3VYwVv8nGzIG7KiHzJR8z1t1J 88RHWnqVdN+gSF3RMC75IjvFpSeBtTAtkvKoIr01wkUwOpxuUvtNoPZsafeTtwfxUv5N C3zixrqf2OvQDga73Ln1ym7BtYJwrv6xRJq43i5BnR/EwHjjASUNNydsZg9c3r/xs93M hdKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777837764; x=1778442564; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UNjANo71707S593AsrE+F6UgPr5pDKG8KqtKEW6rq2Q=; b=GOsiZX0h2aHPR03bfZtWTcim1esvMmgt321M3aTsPpCFCZBOtR+2l4rPYc33YPEptS aaoUa2a070L6D0Pn251hgiuEFaObWtZueFpDgHi6jnaIfGqTrDLek6AqCWbVbBbZlvwR mO443c8nmba1LkqNg1pRUWArt6W3JAKN+2ngsbxQa0iHst1Li3Gv7ulPcr52psOardk5 M+qnVJMT3ogmBqruxkqfxEmS808wmG2DIE5lAmUIm7GS9NqKpvVXP4KO94oCg38dS33F W3MnDUKd61yrc/hWKAjNSiDBvi7jPlrLrEGSDlas0wVh1PoP+EWKTSnFZrutWitAYzw3 zbUA== X-Gm-Message-State: AOJu0YyGVXkEJNwJ3C3GsnNWp5gF9KcbWGKEcbvWe9mFsMQB9El3Fx/c mmw1xG46QjCEVd3rb4qrhv3NnG5/LhfWjQdmp0PN+v8EAZupoA9Z0xFPPVmPbnuFimran2SVr/4 okijtDjwCVlzbl6Zya0LuhwpEsT+OBcs= X-Gm-Gg: AeBDietKnKM6KqAfAypePbEkhV68K9Snh/nMPERqsSANW7F/9/46GKIoozQmF0xPG2Y N2TExPs8msEB547+exiF+bzyWmVdw1boqlIHRm4CEDgC81EKSjNXGtKtpmSXz7SLLjzSRv3TEXX y+9N3WXMZKFRUfOOvavGtOd/wobOIlwCXseZWIxZLUbnWFfxSEII1A4dQrpPTbcnQnULSPt+6dS fYlgBhYfozZYNHUUKT6+tX3uZXygmhtyyyhggJAASFHEPPf11XdSf3xJmukVXYYO4DzCuM3718g 3CnxG8p2t0fGgwbekw== X-Received: by 2002:a05:690e:4849:b0:65c:2066:a9d7 with SMTP id 956f58d0204a3-65c3db493d2mr4740640d50.41.1777837764073; Sun, 03 May 2026 12:49:24 -0700 (PDT) MIME-Version: 1.0 References: <0f8e5544ae8a412bb637fcc3d15f8aaa@alte-leipziger.de> In-Reply-To: From: "David G. Johnston" Date: Sun, 3 May 2026 12:48:47 -0700 X-Gm-Features: AVHnY4JSY_JoMTIVCaaqcEKz4WwPGlUmDpktrY2Vmxj_MwKz8iN_S8CAMkik1IA Message-ID: Subject: Re: Trying to understand Tuple Header To: "Subramanian,Ramachandran" Cc: "pgsql-novice@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000655cfd0650ef1cb1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000655cfd0650ef1cb1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 3, 2026 at 12:25=E2=80=AFPM Subramanian,Ramachandran < ramachandran.subramanian@alte-leipziger.de> wrote: > The binary value of t_infomask for both the tuples are identical, but the= y > produce different column values for xmin_commited, xmin_aborted =E2=80=A6= . 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. --000000000000655cfd0650ef1cb1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, May 3, 2026 at 12:25=E2=80=AFPM Subramanian,Ramach= andran <ra= machandran.subramanian@alte-leipziger.de> wrote:
<= div class=3D"gmail_quote gmail_quote_container">

The binary value of t_infomask for both the tuples are ident= ical, but they produce different column values for xmin_commited, xmin_abor= ted =E2=80=A6. =C2=A0in the SQL =C2=A0!!!.

=C2=A0

Am I not seeing something that is obvious?

<= /div>

You didn't re-check the inf= omask data after running the select query, instead assuming the bits didn&#= 39;t change.=C2=A0 They did.=C2=A0 SELECT is not a read-only operation, it = participates in optimizations.=C2=A0 Called "writing hint bits".= =C2=A0 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.

--000000000000655cfd0650ef1cb1--