pgsql: Ensure we MarkBufferDirty before visibilitymap_set()
pgsql: Ensure we MarkBufferDirty before visibilitymap_set()
От:
Simon Riggs <simon@2ndQuadrant.com>
Дата:
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 Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/730924397c8151c3cf34e633211cd0fe4a0db112 Modified Files -------------- src/backend/commands/vacuumlazy.c | 47 ++++++++++++++++++++---------------- 1 files changed, 26 insertions(+), 21 deletions(-)