mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-22 06:17:00 +08:00
Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
This commit is contained in:
@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf,
|
||||
ptr += segsize;
|
||||
newsize += segsize;
|
||||
}
|
||||
Assert(newsize < GinDataLeafMaxContentSize);
|
||||
Assert(newsize <= GinDataLeafMaxContentSize);
|
||||
GinDataLeafPageSetPostingListSize(page, newsize);
|
||||
GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user