summaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
authorHeikki Linnakangas2014-01-24 09:10:09 +0000
committerHeikki Linnakangas2014-01-24 09:10:09 +0000
commita8f374849fe2e2fcd62bbba8be85ccf030c31683 (patch)
treea0b890c61d09430d0fbbafae585372d022d91d88 /src/backend/access
parent398cf255ad50db86ca665b75582317d4e795242a (diff)
Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/gin/gindatapage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gin/gindatapage.c b/src/backend/access/gin/gindatapage.c
index ebdacd40c55..d65979b0e46 100644
--- a/src/backend/access/gin/gindatapage.c
+++ b/src/backend/access/gin/gindatapage.c
@@ -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 */