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

Commitec8f692

Browse files
committed
Fix alignment of GIN in-line posting lists stored in entry tuples.
The Sparc machines in the buildfarm are crashing because of misalignedaccess to posting lists stored in entry tuples.I accidentally removed a critical SHORTALIGN() from ginFormTuple, as partof the packed posting lists patch. Perhaps I thought it was unnecessary,because the index_form_tuple() call above the SHORTALIGN already alignedthe size, missing the fact that the null-category byte makes it misalignedagain (I think the SHORTALIGN is indeed unnecessary if there's no null-category byte, but let's just play it safe...)
1 parent0fdb2f7 commitec8f692

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ GinFormTuple(GinState *ginstate,
8787
newsize=Max(newsize,minsize);
8888
}
8989

90+
newsize=SHORTALIGN(newsize);
91+
9092
GinSetPostingOffset(itup,newsize);
9193
GinSetNPosting(itup,nipd);
9294

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp