Do not check unlogged indexes on standby
x4mmm@yandex-team.ru
From: Andrey Borodin <x4mmm@yandex-team.ru>
To: pgsql-hackers <pgsql-hackers@postgresql.org>,
Peter Geoghegan <pg@bowt.ie>
Date: 2019-08-12T09:58:24Z
Lists: pgsql-hackers
Attachments
- 0001-Do-not-verify-unlogged-indexes-during-amcheck.patch (application/octet-stream) patch 0001
Hi hackers!
Currently, if we check indexes on standby we often get
man-psbpshn0skhsxynd/xiva_xtable_testing_01 R # select bt_index_check('xiva_loadtest.pk_uid');
ERROR: 58P01: could not open file "base/16453/125407": No such file or directory
I think that we should print warning and that's it. Amcheck should not give false positives.
Or, maybe, there are some design considerations that I miss?
BTW I really want to enable rightlink-leftlink invariant validation on standby..
Thanks!
Best regards, Andrey Borodin.
Commits
-
amcheck: Skip unlogged relations during recovery.
- 6754fe65a4c6 13.0 landed
- a05fa2c0e775 12.0 landed
- 4f393793f7d6 11.6 landed
- f8d2cdc12c94 10.11 landed