model-writtenrun 5318 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Kesper reported that inserting a conflicting NULL with ON CONFLICT under UNIQUE NULLS NOT DISTINCT caused an endless loop, excessive WAL growth, and eventual disk exhaustion, supplying a reproducer in #1.
- Tom Lane reproduced the problem on HEAD and narrowed it to ON CONFLICT in #2; Richard Guo then identified the constraint pre-check's unconditional acceptance of NULL inputs as the likely cause in #3.
- After Michael Paquier highlighted the approaching beta deadline in #4, Tom Lane supplied #5, making the pre-check respect NULLS NOT DISTINCT and search for NULL conflicts, with a regression test.
- Tom Lane also added an interrupt check in #5 because the faulty pre-check bypassed index scanning and allowed an uninterruptible retry loop, proposing that this defensive change be backpatched to all supported branches.
- The interrupt-check hunk landed unchanged as 6ad86feecb, followed by the unchanged constraint-check and test hunks as d59383924c, which credited Richard Guo and Tom Lane; the thread ends with the submission, and the subsequent commits together account for the entire patchset.