From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restore lost amcheck TOAST test coverage.
Date: Fri, 31 Jul 2020 22:34:43 +0000
Message-ID: <E1k1dbv-0007sE-5Q@gemulon.postgresql.org> (raw)
Restore lost amcheck TOAST test coverage.
Commit eba77534 fixed an amcheck false positive bug involving
inconsistencies in TOAST input state between table and index. A test
case was added that verified that such an inconsistency didn't result in
a spurious corruption related error.
Test coverage from the test was accidentally lost by commit 501e41dd,
which propagated ALTER TABLE ... SET STORAGE attstorage state to
indexes. This broke the test because the test specifically relied on
attstorage not being propagated. This artificially forced there to be
index tuples whose datums were equivalent to the datums in the heap
without the datums actually being bitwise equal.
Fix this by updating pg_attribute directly instead. Commit 501e41dd
made similar changes to a test_decoding TOAST-related test case which
made the same assumption, but overlooked the amcheck test case.
Backpatch: 11-, just like commit eba77534 (and commit 501e41dd).
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/725b43b9c3b3c25c60ac717c41047ad0dffb1312
Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 16 ++++++++++++----
contrib/amcheck/sql/check_btree.sql | 14 ++++++++++----
2 files changed, 22 insertions(+), 8 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: pg@bowt.ie
Subject: Re: pgsql: Restore lost amcheck TOAST test coverage.
In-Reply-To: <E1k1dbv-0007sE-5Q@gemulon.postgresql.org>
References: <E1k1dbv-0007sE-5Q@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox