Commit 9abbf472 authored by Robert Haas's avatar Robert Haas

Another fix for single-page hash index vacuum.

The WAL consistency checking code needed to be updated for the new
page status bit, but that didn't get done previously.

Ashutosh Sharma, reviewed by Amit Kapila

Discussion: http://postgr.es/m/CAA4eK1LP_oz4EfMen14OjJuzN5CqPdfRkFFuA-MfkcfeE8zGyg@mail.gmail.com
parent 953477ca
...@@ -1250,8 +1250,14 @@ hash_mask(char *pagedata, BlockNumber blkno) ...@@ -1250,8 +1250,14 @@ hash_mask(char *pagedata, BlockNumber blkno)
/* /*
* In hash bucket and overflow pages, it is possible to modify the * In hash bucket and overflow pages, it is possible to modify the
* LP_FLAGS without emitting any WAL record. Hence, mask the line * LP_FLAGS without emitting any WAL record. Hence, mask the line
* pointer flags. See hashgettuple() for details. * pointer flags. See hashgettuple(), _hash_kill_items() for details.
*/ */
mask_lp_flags(page); mask_lp_flags(page);
} }
/*
* It is possible that the hint bit LH_PAGE_HAS_DEAD_TUPLES may remain
* unlogged. So, mask it. See _hash_kill_items() for details.
*/
opaque->hasho_flag &= ~LH_PAGE_HAS_DEAD_TUPLES;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment