amcheck: In verify_heapam, allows tuples with xmin 0.

Robert Haas <rhaas@postgresql.org>

Commit: e3363cda9cb615718be14e2780fa4c82f3d270de
Author: Robert Haas <rhaas@postgresql.org>
Date: 2023-03-28T20:21:29Z
Releases: 14.8
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

Files

PathChange+/−
contrib/amcheck/verify_heapam.c modified +1 −2

Discussion