amcheck: In verify_heapam, allows tuples with xmin 0.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Mar 2023 20:16:53 +0000 (16:16 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Mar 2023 20:21:29 +0000 (16:21 -0400)
commite3363cda9cb615718be14e2780fa4c82f3d270de
tree5975f692f6bb6c3f4afd2a36900514d95abad6ec
parentc6f1f4e443fb8f8843c33727ea19bb677aec8074
amcheck: In verify_heapam, allows tuples with xmin 0.

Commit e88754a1965c0f40a723e6e46d670cacda9e19bd caused that case
to be reported as corruption, but Peter Geoghegan pointed out that
it can legitimately happen in the case of a speculative insertion
that aborts, so we'd better not flag it as corruption after all.

Back-patch to v14, like the commit that introduced the issue.

Discussion: http://postgr.es/m/CAH2-WzmEabzcPTxSY-NXKH6Qt3FkAPYHGQSe2PtvGgj17ZQkCw@mail.gmail.com
contrib/amcheck/verify_heapam.c