aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
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
commitedd8873ffede137e7af9cba5073ebb218e29704b (patch)
tree3431d36109852d78daf709ee85eccf62db961887 /src/backend/access/gist
parentdefe936ef81d6f785a895ec5b35d480b24cf29fe (diff)
downloadpostgresql-edd8873ffede137e7af9cba5073ebb218e29704b.tar.gz
postgresql-edd8873ffede137e7af9cba5073ebb218e29704b.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/backend/access/gist')
0 files changed, 0 insertions, 0 deletions