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

Commit746e7f1

Browse files
committed
Reuse all-zero pages in GIN.
In GIN, an all-zeros page would be leaked forever, and never reused. Justadd them to the FSM in vacuum, and they will be reinitialized when grabbedfrom the FSM. On master and 9.5, attempting to access the page's opaquestruct also caused an assertion failure, although that was otherwiseharmless.Reported by Jeff Janes. Backpatch to all supported versions.
1 parent579b9f9 commit746e7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/gin/ginvacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ ginvacuumcleanup(PG_FUNCTION_ARGS)
777777
LockBuffer(buffer,GIN_SHARE);
778778
page= (Page)BufferGetPage(buffer);
779779

780-
if (GinPageIsDeleted(page))
780+
if (PageIsNew(page)||GinPageIsDeleted(page))
781781
{
782782
Assert(blkno!=GIN_ROOT_BLKNO);
783783
RecordFreeIndexPage(index,blkno);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp