]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:17:03 +0000 (16:17 -0400)
commit453f53821fa549d3e46c87a076fc7849fab9a948
tree1f0a6bc573e07d7afe950447f519be53fe259614
parentbf5c4b3d9da67ab0dd8a5a560804f88370c42866
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