Ensure we MarkBufferDirty before visibilitymap_set()

Simon Riggs <simon@2ndQuadrant.com>

Commit: 730924397c8151c3cf34e633211cd0fe4a0db112
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2013-04-30T07:15:49Z
Releases: 9.3.0
Ensure we MarkBufferDirty before visibilitymap_set()
logs the heap page and sets the LSN. Otherwise a
checkpoint could occur between those actions and
leave us in an inconsistent state.

Jeff Davis

Files

PathChange+/−
src/backend/commands/vacuumlazy.c modified +26 −21