BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000

Edit
ID 7176
Title BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000
CI (CFBot) Summary
Stats (from CFBot) Patch version: v2, Patch count: 1, First patch: +32−8, All patches: +32−8
Tags Bugfix
Created 2026-08-21 16:28:00
Last modified 2026-10-01 00:00:10 (23 hours ago)
Latest email 2026-09-14 16:44:40 (2 weeks ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Ready for Committer
PG20-2 (2026-09-01 – 2026-09-30): Moved to different CF
Target version 20
Authors Ayush Tiwari (aytiwari)
Reviewers Pierre Forstmann (pifor) Become reviewer
Committer
Links
Emails
BUG #19631: currtid2() on a view with GROUP BY ctid crashes with XX000
First at 2026-08-19 03:51:52 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-09-14 16:44:40 by Pierre Forstmann <pierre.forstmann at gmail.com>
Latest attachment (v2-0001-Fix-internal-errors-reachable-from-SQL.patch) at 2026-09-12 15:50:02 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com>
    Attachment (v2-0001-Fix-internal-errors-reachable-from-SQL.patch) at 2026-09-12 15:50:02 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com> (Patch: No)
    Attachment (v1-0001-Fix-internal-errors-reachable-from-SQL.patch) at 2026-08-21 10:15:14 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com> (Patch: No)
    Attachment (v1-0001-Add-missing-SQLSTATEs-to-user-reachable-errors.patch) at 2026-08-19 10:46:23 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com> (Patch: No)
History
When Who What
2026-10-01 00:00:10 CFbot Moved from CF PG20-2 to CF PG20-3
2026-09-14 16:44:40 Pierre Forstmann (pifor) Posted review with messageid <178940428010.1127.8843845816823757805.pgcf@coridan.postgresql.org>
2026-09-14 16:44:40 Pierre Forstmann (pifor) New status: Ready for Committer
2026-09-12 16:49:01 Ayush Tiwari (aytiwari) New status: Needs review
2026-09-12 10:50:01 Pierre Forstmann (pifor) New status: Waiting on Author
2026-09-12 09:15:11 Pierre Forstmann (pifor) Posted comment with messageid <178920451166.1175.1908642259509647383.pgcf@coridan.postgresql.org>
2026-09-12 08:08:08 Pierre Forstmann (pifor) Added pifor as reviewer
2026-08-21 16:28:00 Ayush Tiwari (aytiwari) Attached mail thread 19631-b443dd6cd8d4e40b@postgresql.org
2026-08-21 16:28:00 Ayush Tiwari (aytiwari) Created patch record
Edit