Skip to content

Commit 01ee7ea

Browse files
author
Nikita Glukhov
committed
FIXME Use JsonContainerIsToasted() in JsonContainerFlatten()
1 parent 5e9e24f commit 01ee7ea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,16 @@ JsonContainerFlatten(JsonContainer *jc, JsonValueEncoder encoder,
204204
return out;
205205
}
206206

207+
#if 0 /* FIXME */
208+
if (ops == &jsonbContainerOps && jc->ops == &jsonbzContainerOps)
209+
{
210+
JsonbToastedContainerPointer jbcptr;
211+
212+
if (JsonContainerIsToasted(jc, &jbcptr))
213+
return jsonbMakeToastPointer(&jbcptr.ptr);
214+
}
215+
#endif
216+
207217
if (binary)
208218
Assert(binary->type == jbvBinary);
209219
else

0 commit comments

Comments
 (0)