pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: amcheck: Skip unlogged relations during recovery. 4+ messages / 1 participants [nested] [flat]
* pgsql: amcheck: Skip unlogged relations during recovery. @ 2019-08-12 22:21 Peter Geoghegan <pg@bowt.ie> 0 siblings, 0 replies; 4+ messages in thread From: Peter Geoghegan @ 2019-08-12 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org amcheck: Skip unlogged relations during recovery. contrib/amcheck failed to consider the possibility that unlogged relations will not have any main relation fork files when running in hot standby mode. This led to low-level "can't happen" errors that complain about the absence of a relfilenode file. To fix, simply skip verification of unlogged index relations during recovery. In passing, add a direct check for the presence of a main fork just before verification proper begins, so that we cleanly verify the presence of the main relation fork file. Author: Andrey Borodin, Peter Geoghegan Reported-By: Andrey Borodin Diagnosed-By: Andrey Borodin Discussion: https://postgr.es/m/DA9B33AC-53CB-4643-96D4-7A0BBC037FA1@yandex-team.ru Backpatch: 10-, where amcheck was introduced. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/6754fe65a4c68c1e3b179080ab62c2f3ff6d877c Modified Files -------------- contrib/amcheck/verify_nbtree.c | 45 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: amcheck: Skip unlogged relations during recovery. @ 2019-08-12 22:21 Peter Geoghegan <pg@bowt.ie> 0 siblings, 0 replies; 4+ messages in thread From: Peter Geoghegan @ 2019-08-12 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org amcheck: Skip unlogged relations during recovery. contrib/amcheck failed to consider the possibility that unlogged relations will not have any main relation fork files when running in hot standby mode. This led to low-level "can't happen" errors that complain about the absence of a relfilenode file. To fix, simply skip verification of unlogged index relations during recovery. In passing, add a direct check for the presence of a main fork just before verification proper begins, so that we cleanly verify the presence of the main relation fork file. Author: Andrey Borodin, Peter Geoghegan Reported-By: Andrey Borodin Diagnosed-By: Andrey Borodin Discussion: https://postgr.es/m/DA9B33AC-53CB-4643-96D4-7A0BBC037FA1@yandex-team.ru Backpatch: 10-, where amcheck was introduced. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f8d2cdc12c9407f26b7872bfb0153a899a5ee299 Modified Files -------------- contrib/amcheck/verify_nbtree.c | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: amcheck: Skip unlogged relations during recovery. @ 2019-08-12 22:21 Peter Geoghegan <pg@bowt.ie> 0 siblings, 0 replies; 4+ messages in thread From: Peter Geoghegan @ 2019-08-12 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org amcheck: Skip unlogged relations during recovery. contrib/amcheck failed to consider the possibility that unlogged relations will not have any main relation fork files when running in hot standby mode. This led to low-level "can't happen" errors that complain about the absence of a relfilenode file. To fix, simply skip verification of unlogged index relations during recovery. In passing, add a direct check for the presence of a main fork just before verification proper begins, so that we cleanly verify the presence of the main relation fork file. Author: Andrey Borodin, Peter Geoghegan Reported-By: Andrey Borodin Diagnosed-By: Andrey Borodin Discussion: https://postgr.es/m/DA9B33AC-53CB-4643-96D4-7A0BBC037FA1@yandex-team.ru Backpatch: 10-, where amcheck was introduced. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4f393793f7d637e4ab8e6460e7bb4cd747f01f85 Modified Files -------------- contrib/amcheck/verify_nbtree.c | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: amcheck: Skip unlogged relations during recovery. @ 2019-08-12 22:21 Peter Geoghegan <pg@bowt.ie> 0 siblings, 0 replies; 4+ messages in thread From: Peter Geoghegan @ 2019-08-12 22:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org amcheck: Skip unlogged relations during recovery. contrib/amcheck failed to consider the possibility that unlogged relations will not have any main relation fork files when running in hot standby mode. This led to low-level "can't happen" errors that complain about the absence of a relfilenode file. To fix, simply skip verification of unlogged index relations during recovery. In passing, add a direct check for the presence of a main fork just before verification proper begins, so that we cleanly verify the presence of the main relation fork file. Author: Andrey Borodin, Peter Geoghegan Reported-By: Andrey Borodin Diagnosed-By: Andrey Borodin Discussion: https://postgr.es/m/DA9B33AC-53CB-4643-96D4-7A0BBC037FA1@yandex-team.ru Backpatch: 10-, where amcheck was introduced. Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a05fa2c0e77535470b6ee1029671eb41c612f4ef Modified Files -------------- contrib/amcheck/verify_nbtree.c | 45 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-08-12 22:21 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-08-12 22:21 pgsql: amcheck: Skip unlogged relations during recovery. Peter Geoghegan <pg@bowt.ie> 2019-08-12 22:21 pgsql: amcheck: Skip unlogged relations during recovery. Peter Geoghegan <pg@bowt.ie> 2019-08-12 22:21 pgsql: amcheck: Skip unlogged relations during recovery. Peter Geoghegan <pg@bowt.ie> 2019-08-12 22:21 pgsql: amcheck: Skip unlogged relations during recovery. Peter Geoghegan <pg@bowt.ie>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox