Re: BUG #17212: pg_amcheck fails on checking temporary relations
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>,
Alexander Lakhin <exclusion@gmail.com>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-10-06T17:39:03Z
Lists: pgsql-bugs, pgsql-hackers
On Wed, Oct 6, 2021 at 10:19 AM Mark Dilger <mark.dilger@enterprisedb.com> wrote: > > A return value of 0 cannot be said to indicate that the database is > > not corrupt; > > Nor can a non-zero value be said to indicate that the database is corrupt. I never said otherwise. I think it's perfectly fine that there are multiple non-zero return values. It's totally unrelated. > I'm not sure how the idea that pg_amcheck should never give back a failure code unless there is corruption got inserted into this thread, but I'm not on board with that as an invariant statement. I agree; I'm also not on board with it as an invariant statement. > The differences in the upcoming version are > > 1) --all no longer means "all relations" but rather "all checkable relations" Clearly pg_amcheck never checked all relations, because it never checked indexes that are not B-Tree indexes. I'm pretty sure that I can poke big holes in almost any positivist statement like that with little effort. > 2) checking options should be automatically downgraded under circumstances where they cannot be applied > 3) unlogged relations during replication are by definition not corrupt > > I think #1 and #3 are unsurprising enough that they need no documentation update. #2 is slightly surprising (at least to me) so I updated the docs for it. To me #2 sounds like a tautology. It could almost be phrased as "pg_amcheck does not check the things that it cannot check". -- Peter Geoghegan
Commits
-
Remove unstable pg_amcheck tests.
- cd3f429d9565 15.0 landed
- 5863115e4cb1 14.1 landed
-
pg_amcheck: avoid unhelpful verification attempts.
- d2bf06db3779 15.0 landed
- dd58194cf563 14.1 landed
-
amcheck: Skip unlogged relations in Hot Standby.
- 292698f158dd 15.0 landed
- e7712155ea08 14.1 landed
-
amcheck: Skip unlogged relations during recovery.
- 6754fe65a4c6 13.0 cited