Skip to content

Commit 95870c0

Browse files
author
Nikita Glukhov
committed
Export jsonbzDecompress()
1 parent ca05c71 commit 95870c0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ static JsonbValue *fillCompressedJsonbValue(CompressedJsonb *cjb,
151151
const JsonbContainerHeader *container,
152152
int index, char *base_addr,
153153
uint32 offset, JsonValue *result);
154-
static JsonbContainerHeader *jsonbzDecompress(JsonContainer *jc);
155154

156155
bool jsonb_sort_field_values = true; /* GUC */
157156
bool jsonb_partial_decompression = true; /* GUC */
@@ -2631,7 +2630,7 @@ jsonbzInitContainer(JsonContainerData *jc, CompressedJsonb *cjb, int len)
26312630
jsonbInitContainerFromHeader(jc, jbc);
26322631
}
26332632

2634-
static JsonbContainerHeader *
2633+
JsonbContainerHeader *
26352634
jsonbzDecompress(JsonContainer *jc)
26362635
{
26372636
CompressedJsonb *cjb = (CompressedJsonb *) &jc->_data;

src/include/utils/jsonb_internals.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,8 @@ typedef struct CompressedJsonb
173173

174174
#define jsonbzGetCompressedJsonb(jc) ((CompressedJsonb *) &(jc)->_data)
175175

176+
typedef struct JsonContainerData JsonContainerData;
177+
typedef const JsonContainerData JsonContainer;
178+
extern JsonbContainerHeader *jsonbzDecompress(JsonContainer *jc);
179+
176180
#endif /* __JSONB_INTERNALS_H__ */

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