Content-Length: 254533 | pFad | http://github.com/postgrespro/postgres/commit/a8f374849fe2e2fcd62bbba8be85ccf030c31683

5B Fix off-by-one in newly-introdcued GIN assertion. · postgrespro/postgres@a8f3748 · GitHub
Skip to content

Commit a8f3748

Browse files
committed
Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
1 parent 398cf25 commit a8f3748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/gin/gindatapage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf,
815815
ptr += segsize;
816816
newsize += segsize;
817817
}
818-
Assert(newsize < GinDataLeafMaxContentSize);
818+
Assert(newsize <= GinDataLeafMaxContentSize);
819819
GinDataLeafPageSetPostingListSize(page, newsize);
820820
GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */
821821

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a8f374849fe2e2fcd62bbba8be85ccf030c31683

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy