Fix WAL-logging of setting the visibility map bit.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: a49633d8dc6c66f6b2e92c8598d3dfa2cc72a259
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-12-13T12:15:04Z
Releases: 9.4.0
Fix WAL-logging of setting the visibility map bit.

The operation that removes the remaining dead tuples from the page must
be WAL-logged before the setting of the VM bit. Otherwise, if you replay
the WAL to between those two records, you end up with the VM bit set, but
the dead tuples are still there.

Backpatch to 9.3, where this bug was introduced.

Files

PathChange+/−
src/backend/commands/vacuumlazy.c modified +12 −15