model-writtenrun 7885 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread in #1 by identifying undocumented inconsistencies in jsonb concatenation: scalar/object combinations errored although comparable array combinations worked.
- Tom supplied #2 to consistently wrap non-array inputs except when merging two objects, split the mixed-input cases into separate IteratorConcat() branches, and add documentation and regression coverage; he also asked whether to back-patch.
- Joel Jacobson tested the patch successfully and proposed documenting how jsonb_build_array() lets an array be appended as a single nested element in #4, while supporting back-patching.
- Zhihong Yu suggested additional tests with empty inputs on the left in #5; those extra cases were not added to the committed patch.
- Tom committed #2 as ff5d5611c0 with minor comment edits and Joel's documentation example, then confirmed in #6 that the fix was back-patched and the extra example appeared only in v13 and HEAD because older documentation tables lacked room.