model-writtenrun 9515 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Rikard Falkeborn identified a missing == 0 comparison in the unary-minus operator-precedence check and proposed the one-line correction in #1.
- Andrew Gierth demonstrated that the bug produced a spurious precedence warning for -random() IS NULL in #2, and Tom Lane acknowledged the mistake in #3.
- Tom Lane committed the proposed parser correction as 4cae471d1b, with the same fix backported to stable branches.
- Michael Paquier proposed standardizing other boolean-style strcmp() checks in #4; Thomas Munro highlighted refint.c in #5, David Rowley favored fixing all such occurrences in #6, and Tom Lane supported consistent coding style in #8.
- Michael Paquier supplied the three-file cleanup patch in #9, and David Rowley reviewed it and found two additional comparisons in spell.c plus a spacing issue in formatting.c in #10.
- Tom Lane attributed the formatting.c spacing to pgindent's treatment of a typedef name in #11, and Michael Paquier excluded that change to avoid recurring formatting noise in #12.
- Michael Paquier committed the attached cleanup with David Rowley's two spell.c additions as d527fda621 and confirmed completion in #13, leaving no patch pending.