Content-Length: 260630 | pFad | http://github.com/postgrespro/postgres/commit/f1e5e20e0d40f6bb76c0ac0e4905a453fd1245a5

F8 Decompress only header in jsonzIteratorInit() · postgrespro/postgres@f1e5e20 · GitHub
Skip to content

Commit f1e5e20

Browse files
author
Nikita Glukhov
committed
Decompress only header in jsonzIteratorInit()
1 parent 30743fe commit f1e5e20

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
@@ -3011,7 +3011,7 @@ jsonbzInitFromDetoastIterator(JsonContainerData *jc, DetoastIterator iter)
30113011
if (!jsonb_partial_decompression)
30123012
PG_DETOAST_ITERATE(iter, iter->buf->capacity);
30133013
else
3014-
PG_DETOAST_ITERATE(iter, Min(iter->buf->buf + 256, iter->buf->capacity));
3014+
PG_DETOAST_ITERATE(iter, Min(iter->buf->buf + offsetof(Jsonb, root.children), iter->buf->capacity));
30153015

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

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/f1e5e20e0d40f6bb76c0ac0e4905a453fd1245a5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy