pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Restore lost amcheck TOAST test coverage.
4+ messages / 1 participants
[nested] [flat]

* pgsql: Restore lost amcheck TOAST test coverage.
@ 2020-07-31 22:34  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Geoghegan @ 2020-07-31 22:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a4ad7ac2d8d422f6aad3dec46f13e6b0bd6bd7ed

Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 16 ++++++++++++----
contrib/amcheck/sql/check_btree.sql      | 14 ++++++++++----
2 files changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Restore lost amcheck TOAST test coverage.
@ 2020-07-31 22:34  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Geoghegan @ 2020-07-31 22:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c79aed4f793086300abfc188def94b5c0bd0b45d

Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 16 ++++++++++++----
contrib/amcheck/sql/check_btree.sql      | 14 ++++++++++----
2 files changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Restore lost amcheck TOAST test coverage.
@ 2020-07-31 22:34  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Geoghegan @ 2020-07-31 22:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Restore lost amcheck TOAST test coverage.
@ 2020-07-31 22:34  Peter Geoghegan <pg@bowt.ie>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter Geoghegan @ 2020-07-31 22:34 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/16c977906e92673b22a05bc80e9a53d023cdd79b

Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 16 ++++++++++++----
contrib/amcheck/sql/check_btree.sql      | 14 ++++++++++----
2 files changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2020-07-31 22:34 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 22:34 pgsql: Restore lost amcheck TOAST test coverage. Peter Geoghegan <pg@bowt.ie>
2020-07-31 22:34 pgsql: Restore lost amcheck TOAST test coverage. Peter Geoghegan <pg@bowt.ie>
2020-07-31 22:34 pgsql: Restore lost amcheck TOAST test coverage. Peter Geoghegan <pg@bowt.ie>
2020-07-31 22:34 pgsql: Restore lost amcheck TOAST test coverage. Peter Geoghegan <pg@bowt.ie>

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