Sep 2019

3 commits
Split out code into new getKeyJsonValueFromContainer()
20 Sep 2019Alvaro Herreramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #91 of 2 reviewers saw the final version

This commits the object-lookup portion of #9 across src/backend/utils/adt/jsonb_util.c, src/backend/utils/adt/jsonfuncs.c, and src/include/utils/jsonb.h. The committer renamed findJsonbKeyInObject() to getKeyJsonValueFromContainer(), moved allocation until a key is found, and revised function placement and comments.

  • Joe Nelsonsaw an earlier versionLLM analysis, 98% sureJoe reported successful make check testing of his rebased series in #6, before the committed object-lookup allocation changes.
  • Alvaro Herrerasaw the final versioncommittercommitted the patch
Optimize get_jsonb_path_all avoiding an iterator
20 Sep 2019Alvaro Herreramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #92 of 2 reviewers saw the final version

This extracts the get_jsonb_path_all() hunks from the first patch in #9: container flags replace iterator-based recognition, and JsonbValueAsText() replaces indirect text conversion in src/backend/utils/adt/jsonfuncs.c. Those hunks retain the submitted logic.

  • Joe Nelsonsaw the final versionLLM analysis, 98% sureJoe reported successful make check testing in #6, which already contained the committed path-conversion and container-recognition logic.
  • Alvaro Herrerasaw the final versioncommittercommitted the patch
Refactor code into new JsonbValueAsText, and use it more
20 Sep 2019Alvaro Herreramaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #91 of 2 reviewers saw the final version

This commits the JsonbValueAsText() extraction and its field, element, and set-returning callers from #9, leaving get_jsonb_path_all() for a separate commit. Besides relocation and cleanup, src/backend/utils/adt/jsonfuncs.c now passes the binary value's length to JsonbToCString() instead of -1 and rearranges the element-worker branches.

  • Joe Nelsonsaw an earlier versionLLM analysis, 96% sureJoe reported successful make check testing in #6, before the committer changed the binary-output sizing argument and reorganized the element worker.
  • Alvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
Nikita Glukhov3
Reviewer
Alvaro Herreracommitter3
Committer
Alvaro Herrera3