On Wed, Jun 15, 2016 at 9:59 AM, Amit Kapila <amit.kapil...@gmail.com> wrote:
>> That just kicks the can down the road. Then you have PD_ALL_VISIBLE
>> clear but the VM bit is still set.
> I mean to say clear both as we are doing currently in code:
> if (PageIsAllVisible(BufferGetPage(buffer)))
> all_visible_cleared = true;
> visibilitymap_clear(relation, BufferGetBlockNumber(buffer),
Sure, but without emitting a WAL record, that's just broken. You
could have the heap page get flushed to disk and the VM page not get
flushed to disk, and then crash, and now you have the classic VM
>> And you still haven't WAL-logged
> Yeah, I think WAL requirement is more difficult to meet and I think
> releasing the lock on buffer before writing WAL could lead to flush of such
> a buffer before WAL.
> I feel this is an existing-bug and should go to Older Bugs Section in open
> items page.
It does seem to be an existing bug, but the freeze map makes the
problem more serious, I think.
The Enterprise PostgreSQL Company
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: