diff options
author | Robert Haas <rhaas@postgresql.org> | 2021-03-16 15:42:20 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2021-03-16 15:42:50 -0400 |
commit | 4078ce65a0f7197180a9be2c6460ea4bf909bd98 (patch) | |
tree | 16f2300ce31863129886893cdd30866f8ffc4e3a /src | |
parent | c6fc50cb40285141fad401321ae21becbaea1c59 (diff) | |
download | postgresql-4078ce65a0f7197180a9be2c6460ea4bf909bd98.tar.gz postgresql-4078ce65a0f7197180a9be2c6460ea4bf909bd98.zip |
Fix a confusing amcheck corruption message.
Don't complain about the last TOAST chunk number being different
from what we expected if there are no TOAST chunks at all.
In such a case, saying that the final chunk number is 0 is not
really accurate, and the fact the value is missing from the
TOAST table is reported separately anyway.
Mark Dilger
Discussion: http://postgr.es/m/AA5506CE-7D2A-42E4-A51D-358635E3722D@enterprisedb.com
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_amcheck/t/004_verify_heapam.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/pg_amcheck/t/004_verify_heapam.pl b/src/bin/pg_amcheck/t/004_verify_heapam.pl index 9f7114cd622..16574cb1f86 100644 --- a/src/bin/pg_amcheck/t/004_verify_heapam.pl +++ b/src/bin/pg_amcheck/t/004_verify_heapam.pl @@ -296,7 +296,7 @@ close($file) $node->start; # Ok, Xids and page layout look ok. We can run corruption tests. -plan tests => 20; +plan tests => 19; # Check that pg_amcheck runs against the uncorrupted table without error. $node->command_ok(['pg_amcheck', '-p', $port, 'postgres'], @@ -489,7 +489,6 @@ for (my $tupidx = 0; $tupidx < ROWCOUNT; $tupidx++) $header = header(0, $offnum, 2); push @expected, - qr/${header}final toast chunk number 0 differs from expected value \d+/, qr/${header}toasted value for attribute 2 missing from toast table/; } elsif ($offnum == 14) |