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

Commit588f50f

Browse files
committed
Don't assume that PageIsEmpty() returns true on an all-zeros page.
It does currently, and I don't see us changing that any time soon, but wedon't make that assumption anywhere else.Per Tom Lane's suggestion. Backpatch to 9.2, like the previous patch thatadded this assumption.
1 parentbafe3b0 commit588f50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/spgist/spgvacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ spgvacuumpage(spgBulkDeleteState *bds, BlockNumber blkno)
653653
*/
654654
if (!SpGistBlockIsRoot(blkno))
655655
{
656-
if (PageIsEmpty(page))
656+
if (PageIsNew(page)||PageIsEmpty(page))
657657
{
658658
RecordFreeIndexPage(index,blkno);
659659
bds->stats->pages_deleted++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp