Skip to content

Commit b9acb6b

Browse files
author
Nikita Glukhov
committed
Decompress only header in jsonzIteratorInit()
1 parent 5005a96 commit b9acb6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ jsonbzInitFromDetoastIterator(JsonContainerData *jc, DetoastIterator iter)
29722972
if (!jsonb_partial_decompression)
29732973
PG_DETOAST_ITERATE(iter, iter->buf->capacity);
29742974
else
2975-
PG_DETOAST_ITERATE(iter, Min(iter->buf->buf + 256, iter->buf->capacity));
2975+
PG_DETOAST_ITERATE(iter, Min(iter->buf->buf + offsetof(Jsonb, root.children), iter->buf->capacity));
29762976

29772977
jsonbzInitContainer(jc, cjb, VARSIZE_ANY_EXHDR(iter->buf->buf)); // cd->total_len - VARHDRSZ
29782978
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy