Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 00d3822

Browse files
author
Nikita Glukhov
committed
Add jsonb_iter_cache
1 parent 33a263a commit 00d3822

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/backend/utils/adt/jsonb_util.c

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ bool jsonb_sort_field_values = true; /* GUC */
160160
bool jsonb_partial_decompression = true; /* GUC */
161161
bool jsonb_partial_detoast = true; /* GUC */
162162

163+
void **jsonb_iter_cache;
164+
MemoryContext jsonb_iter_cache_mcxt;
165+
163166
JsonValue *
164167
JsonValueUnpackBinary(const JsonValue *jbv)
165168
{

src/include/utils/jsonb.h

+3
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,7 @@ extern MemoryContext jsonbGetIteratorContext(void);
266266
#endif
267267
extern void jsonbRegisterIterator(GenericDetoastIterator iter);
268268

269+
extern void **jsonb_iter_cache;
270+
extern MemoryContext jsonb_iter_cache_mcxt;
271+
269272
#endif /* __JSONB_H__ */

0 commit comments

Comments
 (0)