aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2019-08-12 15:21:28 -0700
committerPeter Geoghegan <pg@bowt.ie>2019-08-12 15:21:28 -0700
commit4f393793f7d637e4ab8e6460e7bb4cd747f01f85 (patch)
tree6166ae0127b9a7846f52f6e1d33659c4d332cb14 /src/backend/utils/adt/jsonfuncs.c
parentc914e74d2dee0ecf372c1d40f87499d94d591935 (diff)
downloadpostgresql-4f393793f7d637e4ab8e6460e7bb4cd747f01f85.tar.gz
postgresql-4f393793f7d637e4ab8e6460e7bb4cd747f01f85.zip
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.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions