Skip to content

Commit 026c7c2

Browse files
author
Nikita Glukhov
committed
Add jsonb partial decompression
1 parent c958d6a commit 026c7c2

File tree

7 files changed

+945
-47
lines changed

7 files changed

+945
-47
lines changed

src/backend/utils/adt/json_generic.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
#include "utils/jsonb.h"
1717
#include "utils/memutils.h"
1818

19-
static Json *JsonExpand(Json *tmp, Datum value, bool freeValue,
20-
JsonContainerOps *ops);
21-
2219
JsonValue *
2320
JsonExtractScalar(JsonContainer *jc, JsonValue *scalar)
2421
{
@@ -87,7 +84,7 @@ JsonInit(Json *json)
8784
json->root.ops->init(&json->root, json->obj.value);
8885
}
8986

90-
static Json *
87+
Json *
9188
JsonExpand(Json *tmp, Datum value, bool freeValue, JsonContainerOps *ops)
9289
{
9390
Json *json = tmp ? tmp : (Json *) palloc(JsonAllocSize(ops->data_size));

0 commit comments

Comments
 (0)