model-writtenrun 2737 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chengpeng Yan reported that empty jsonb arrays sort before null and proposed prioritizing rawScalar over array length in compareJsonbContainers(), with regression coverage for scalar, array, object, and mixed values #1.
- Jian He agreed with the comparison fix but questioned the revised comments, identified collation-dependent test values, and suggested a focused empty-array-versus-null test #2.
- Andrew Dunstan argued that changing the longstanding sort order could invalidate existing indexes, then supplied a documentation patch describing the anomaly instead of changing behavior #3 #4.
- Jian He requested lowercase JSON null spelling #5; Chengpeng Yan accepted the documentation approach, accidentally reattached the original code patch, and then supplied the intended documentation revision #6 #7, which Jian completed by correcting the ordering synopsis too #8.
- Andrew Dunstan committed the final documentation revision with an added 'top level' qualification as 591128f9c9, with backports to supported branches; his announcement also reported a master-only code comment discouraging future changes to the ordering, although that comment is absent from this candidate's diff #9.
- After Tom Lane asked whether the remaining CommitFest entry could be closed #10, Andrew Dunstan confirmed that the work was complete and marked it committed, leaving the original behavior change and its tests unlanded #11.