model-writtenrun 8864 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Oct 2019 - Jan 2020 ยท 11 entries
- Ariadne Conill reported that Pleroma migrations could overwrite entire JSONB documents with SQL NULL when jsonb_set() received a missing field as its replacement value, supplied a defensive wrapper, and requested safer behavior in #1.
- Christoph Moench-Tegeder and Stephen Frost explained SQL NULL propagation and recommended query guards or constraints, while acknowledging compatibility and interface concerns in #7 and #11; Ariadne clarified that the practical issue was surprising behavior and compared JSON-null insertion and key deletion in other databases in #14.
- The alternatives remained contested: David G. Johnston advocated raising an exception in #17, Tomas Vondra preferred key deletion over conflating SQL NULL with JSON null in #25, and Andrew Dunstan favored inserting JSON null while rejecting backpatching a behavioral change in #24.
- Dmitry Dolgov proposed JSONB subscripting as another way to provide different NULL semantics in #21, but Stephen Frost treated that as an independent feature in #23.
- Andrew Dunstan brought the competing behaviors together by proposing an extra parameter selecting JSON null, key deletion, unchanged input or an exception in #35, while also raising the question of NULL values in the other arguments.
- Documentation became a separate concern: Tomas Vondra highlighted the missing explanation of NULL behavior in #39, and Andrew Dunstan drafted a general strictness warning in #49; that warning is absent from the supplied patchsets and candidate commit.
- Stuart McGraw challenged the scalar NULL-propagation analogy using array_replace() on a compound value in #64, while Tom Lane cautioned that mapping SQL NULL to JSON null still crosses distinct semantics in #69.
- Andrew Dunstan resolved the compatibility question by posting a separate jsonb_set_lax() function for PostgreSQL 13 in #71, retaining jsonb_set() behavior and offering all four NULL treatments with use_json_null as the default; he also identified an extension as a possible route for older releases.
- Pavel Stehule reported successful compilation and regression tests but requested documentation and better exception diagnostics in #73, then proposed a specific SQLSTATE and richer error text in #75; Andrew incorporated those changes in #78.
- Pavel Stehule supplied the final complete patch using standard named-argument syntax and reported successful documentation builds and check-world in #79, after which Andrew Dunstan announced his intention to commit in #80.
- Andrew Dunstan committed #79 unchanged apart from rebasing as a83586b554; Tomas Vondra marked the work committed in #81, and Ariadne thanked the participants in #82, leaving the new function landed with no further implementation work pending in the thread.