diff options
author | Alvaro Herrera | 2019-09-20 22:18:24 +0000 |
---|---|---|
committer | Alvaro Herrera | 2019-09-20 22:31:32 +0000 |
commit | dbb9aeda9959d8a8f463e841b69dfa04afc67a3a (patch) | |
tree | 736ab0689e69f58e54cf9d12b81bed6f5f90c3fb /src/backend/utils/adt/jsonb_util.c | |
parent | abb014a63106653f2872a3b1662a79ab80d4dcbb (diff) |
Optimize get_jsonb_path_all avoiding an iterator
Instead of creating an iterator object at each step down the JSONB
object/array, we can just just examine its object/array flags, which is
faster. Also, use the recently introduced JsonbValueAsText instead of
open-coding the same thing, for code simplicity.
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