aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/makefuncs.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2022-04-05 09:44:52 -0700
committerPeter Geoghegan <pg@bowt.ie>2022-04-05 09:44:52 -0700
commite83ebfe6d767dafcefe00bc5f11392a3d6976c1b (patch)
treee6fd1e66d062d014dfefe9d55fd35551a329115b /src/backend/nodes/makefuncs.c
parent16915126746e2d8597a92197a346fea0756f8e3e (diff)
downloadpostgresql-e83ebfe6d767dafcefe00bc5f11392a3d6976c1b.tar.gz
postgresql-e83ebfe6d767dafcefe00bc5f11392a3d6976c1b.zip
Have VACUUM warn on relfrozenxid "in the future".
Commits 74cf7d46 and a61daa14 fixed pg_upgrade bugs involving oversights in how relfrozenxid or relminmxid are carried forward or initialized. Corruption caused by bugs of this nature was ameliorated by commit 78db307bb2, which taught VACUUM to always overwrite existing invalid relfrozenxid or relminmxid values that are apparently "in the future". Extend that work now by showing a warning in the event of overwriting either relfrozenxid or relminmxid due to an existing value that is "in the future". There is probably a decent chance that the sanity checks added by commit 699bf7d05c will raise an error before VACUUM reaches this point, but we shouldn't rely on that. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CAH2-WzmRZEzeGvLv8yDW0AbFmSvJjTziORqjVUrf74mL4GL0Ww@mail.gmail.com
Diffstat (limited to 'src/backend/nodes/makefuncs.c')
0 files changed, 0 insertions, 0 deletions