pgsql: Fix WAL-logging of setting the visibility map bit.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix WAL-logging of setting the visibility map bit.
Date: 2013-12-13 12:23:55
Message-ID: E1VrRmd-00048a-JY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a49633d8dc6c66f6b2e92c8598d3dfa2cc72a259

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2013-12-13 14:02:39 pgsql: Fix double "the" in the documentation
Previous Message Peter Eisentraut 2013-12-13 03:02:18 pgsql: configure: Allow adding a custom string to PG_VERSION