model-writtenrun 147 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- shihao zhong reported stale jsonb_object_agg window results and missed duplicate-key errors involving null values, proposing copied-state finalization with regression tests in #1.
- Tom Lane measured a slowdown from about 12 milliseconds to 7.2 seconds with unconditional copying, recommended renumbering retained pairs with selective copying, and requested clearer aggregate documentation in #2.
- shihao zhong revised the implementation to renumber pairs and copy only for jsonb_object_agg_unique_strict, added a null-valued duplicate regression test and documentation, and reported restored benchmark performance in #3.
- Melanie Plageman asked whether the regression needed a PostgreSQL 19 open item in #4, and Tom Lane said he planned to resolve it that day in #5.
- Tom Lane committed the implementation and tests from #3 as 56b463f373, with small implementation edits and synchronized json/jsonb tests; the commit records existing json duplicate-key behavior without changing it and was backpatched through PostgreSQL 19.
- Tom Lane committed the documentation portion of #3 with wording edits as 8a5f8eb456, documenting duplicate handling and null-value interactions, and backpatched it through PostgreSQL 14.
- Tom Lane confirmed that the entire series had landed in #6, explaining that selective copying resolved his performance concern while leaving his concern about json retaining duplicate keys unresolved.