aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/dumputils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-05-24 15:47:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-05-24 15:47:51 -0400
commit2d2e40e3befd8b9e0d2757554537345b15fa6ea2 (patch)
tree24fef91106701c2f55b78a9bd15b72cc0b7b9cf6 /src/bin/pg_dump/dumputils.c
parent996d273978c6f21b8b66f7f3bdd979cc37736c7a (diff)
downloadpostgresql-2d2e40e3befd8b9e0d2757554537345b15fa6ea2.tar.gz
postgresql-2d2e40e3befd8b9e0d2757554537345b15fa6ea2.zip
Fetch XIDs atomically during vac_truncate_clog().
Because vac_update_datfrozenxid() updates datfrozenxid and datminmxid in-place, it's unsafe to assume that successive reads of those values will give consistent results. Fetch each one just once to ensure sane behavior in the minimum calculation. Noted while reviewing Alexander Korotkov's patch in the same area. Discussion: <8564.1464116473@sss.pgh.pa.us>
Diffstat (limited to 'src/bin/pg_dump/dumputils.c')
0 files changed, 0 insertions, 0 deletions