Re: BUG #17212: pg_amcheck fails on checking temporary relations
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>,
Pavel Borisov <pashkin.elfe@gmail.com>, Alexander Lakhin <exclusion@gmail.com>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-10-06T19:28:20Z
Lists: pgsql-bugs, pgsql-hackers
On Wed, Oct 6, 2021 at 11:55 AM Peter Geoghegan <pg@bowt.ie> wrote: > I am pretty sure that I agree with you about all these details. We > need to tease them apart some more. I think that what I've said boils down to this: * pg_amcheck shouldn't attempt to verify temp relations, on the grounds that this is fundamentally not useful, and not something that could ever be sensibly interpreted as "just doing what the user asked for". * pg_amcheck calls to bt_index_check()/bt_index_parent_check() must only be made with "i.indisready AND i.indisvalid" indexes, just like the old query from the docs. (Actually, the same query also filters out temp relations -- which is why I view this issue as almost identical to the first.) Why would the user ask for something that fundamentally doesn't make any sense? The argument "that's just what they asked for" has it backwards, because *not* asking for it is very difficult, while asking for it (which, remember, fundamentally makes no sense) is very easy. * --parent-check can and should fail in hot standby mode. The argument "that's just what the user asked for" works perfectly here. -- 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