Skip to content

Commit 9abbf47

Browse files
committed
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
1 parent 953477c commit 9abbf47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/access/hash/hash_xlog.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,14 @@ hash_mask(char *pagedata, BlockNumber blkno)
12501250
/*
12511251
* In hash bucket and overflow pages, it is possible to modify the
12521252
* LP_FLAGS without emitting any WAL record. Hence, mask the line
1253-
* pointer flags. See hashgettuple() for details.
1253+
* pointer flags. See hashgettuple(), _hash_kill_items() for details.
12541254
*/
12551255
mask_lp_flags(page);
12561256
}
1257+
1258+
/*
1259+
* It is possible that the hint bit LH_PAGE_HAS_DEAD_TUPLES may remain
1260+
* unlogged. So, mask it. See _hash_kill_items() for details.
1261+
*/
1262+
opaque->hasho_flag &= ~LH_PAGE_HAS_DEAD_TUPLES;
12571263
}

0 commit comments

Comments
 (0)