Re: Do not check unlogged indexes on standby
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-08-12T22:36:23Z
Lists: pgsql-hackers
On Mon, Aug 12, 2019 at 2:58 AM Andrey Borodin <x4mmm@yandex-team.ru> wrote: > BTW I really want to enable rightlink-leftlink invariant validation on standby.. That seems very hard. My hope was that bt_check_index() can detect the same problem a different way. The bt_right_page_check_scankey() cross-page check (which needs nothing more than an AccessShareLock) will often detect such problems, because the page image itself will be totally wrong in some way. I'm guessing that you have direct experience with that *not* being good enough, though. Can you share further details? I suppose that bt_right_page_check_scankey() helps with transposed pages, but doesn't help so much when you have WAL-level inconsistencies. -- Peter Geoghegan
Commits
-
amcheck: Skip unlogged relations during recovery.
- 6754fe65a4c6 13.0 landed
- a05fa2c0e775 12.0 landed
- 4f393793f7d6 11.6 landed
- f8d2cdc12c94 10.11 landed