Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9abbf47

Browse files
committed
Another fix for single-page hash index vacuum.
The WAL consistency checking code needed to be updated for the newpage status bit, but that didn't get done previously.Ashutosh Sharma, reviewed by Amit KapilaDiscussion:http://postgr.es/m/CAA4eK1LP_oz4EfMen14OjJuzN5CqPdfRkFFuA-MfkcfeE8zGyg@mail.gmail.com
1 parent953477c commit9abbf47

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)

[8]ページ先頭

©2009-2025 Movatter.jp