Skip to content

Commit 1be6c2b

Browse files
author
Nikita Glukhov
committed
Use jsonb_partial_detoast GUC
1 parent 3f322af commit 1be6c2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/jsonb_toaster/jsonb_toaster.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,9 @@ jsonxzInitWithHeader(JsonContainerData *jc, Datum value, JsonbContainerHdr *head
20892089
oldcxt = MemoryContextSwitchTo(mcxt);
20902090
#endif
20912091

2092+
if (!jsonb_partial_detoast && VARATT_IS_EXTERNAL_ONDISK(value))
2093+
value = PointerGetDatum(detoast_external_attr((struct varlena *) DatumGetPointer(value)));
2094+
20922095
iter = jsonx_create_detoast_iterator((struct varlena *) DatumGetPointer(value));
20932096

20942097
#ifdef JSONB_FREE_ITERATORS

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