postgres/src
Peter Geoghegan e83ebfe6d7 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
2022-04-05 09:44:52 -07:00
..
backend Have VACUUM warn on relfrozenxid "in the future". 2022-04-05 09:44:52 -07:00
bin pg_rewind: Fetch small files according to new size. 2022-04-05 14:45:31 +02:00
common Fix possible NULL-pointer-deference in backup_compression.c. 2022-03-30 15:53:08 -04:00
fe_utils Allow pgbench to retry in some cases. 2022-03-23 19:05:45 +09:00
include Refactor and cleanup runtime partition prune code a little 2022-04-05 11:46:48 +02:00
interfaces libpq: Fix pkg-config without OpenSSL 2022-04-01 17:15:24 +02:00
makefiles Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pl Keep plpgsql.h C++-clean. 2022-03-31 18:29:10 -04:00
port Simplify coding around path_contains_parent_reference(). 2022-01-31 13:53:38 -05:00
template Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
test Update some tests in 013_crash_restart.pl. 2022-04-04 22:10:06 -04:00
timezone Update copyright for 2022 2022-01-07 19:04:57 -05:00
tools JSON_TABLE 2022-04-04 16:03:47 -04:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Print information about type of test and subdirectory before running tests. 2022-03-31 11:19:24 -07:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk