https://github.com/postgres/postgres
Revision f222349c4ec061705e121548d2fe646b4d03ccdf authored by Noah Misch on 29 April 2024, 17:24:56 UTC, committed by Noah Misch on 29 April 2024, 17:25:00 UTC
vac_update_datfrozenxid() did multiple loads of relfrozenxid and
relminmxid from buffer memory, and it assumed each would get the same
value.  Not so if a concurrent vac_update_relstats() did an inplace
update.  Commit 2d2e40e3befd8b9e0d2757554537345b15fa6ea2 fixed the same
kind of bug in vac_truncate_clog().  Today's bug could cause the
rel-level field and XIDs in the rel's rows to precede the db-level
field.  A cluster having such values should VACUUM affected tables.
Back-patch to v12 (all supported versions).

Discussion: https://postgr.es/m/20240423003956.e7.nmisch@google.com
1 parent cb0ccef
History
Tip revision: f222349c4ec061705e121548d2fe646b4d03ccdf authored by Noah Misch on 29 April 2024, 17:24:56 UTC
Close race condition between datfrozen and relfrozen updates.
Tip revision: f222349
File Mode Size
config
contrib
doc
src
.dir-locals.el -rw-r--r-- 730 bytes
.git-blame-ignore-revs -rw-r--r-- 8.0 KB
.gitattributes -rw-r--r-- 1.5 KB
.gitignore -rw-r--r-- 515 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 4.2 KB
HISTORY -rw-r--r-- 284 bytes
Makefile -rw-r--r-- 1.6 KB
README -rw-r--r-- 1.2 KB
README.git -rw-r--r-- 728 bytes
aclocal.m4 -rw-r--r-- 445 bytes
configure -rwxr-xr-x 575.2 KB
configure.in -rw-r--r-- 86.0 KB

README

back to top