diff options
author | Alvaro Herrera | 2019-09-20 21:34:31 +0000 |
---|---|---|
committer | Alvaro Herrera | 2019-09-20 22:30:16 +0000 |
commit | abb014a63106653f2872a3b1662a79ab80d4dcbb (patch) | |
tree | bea9c5d5d20225233a6f05015b2ade1d1656b474 /src/backend/utils/adt/jsonb_util.c | |
parent | e56cad84d542a8cc2056390a9c651118cfa6c89c (diff) |
Refactor code into new JsonbValueAsText, and use it more
jsonb_object_field_text and jsonb_array_element_text both contained
identical copies of this code, so extract that into new routine
JsonbValueAsText. This can also be used in other places, to measurable
performance benefit: the jsonb_each() and jsonb_array_elements()
functions can use it for outputting text forms instead of their less
efficient current implementation (because we no longer need to build
intermediate a jsonb representation of each value).
Author: Nikita Glukhov
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions