[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.

[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.

[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.

[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.

[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.

[COMMITTERS] pgsql: Fetch XIDs atomically during vac_truncate_clog().

2016-05-24 Thread Tom Lane
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.