model-writtenrun 240 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ludvig Janiuk reported that dropping a NOT NULL column, re-adding it with the same name, and adding a primary key in one ALTER TABLE command failed on PostgreSQL 18 despite succeeding on earlier releases #1.
- Fujii Masao traced the failure to checking the old column's NOT NULL constraint before dropping it and proposed deferring that check until after column drops and additions, while still creating required constraints before the primary-key index #2.
- Manu tested 24 scenarios on development and stable branches, confirmed related failures when dropping only the NOT NULL constraint, identified the introducing change, and supplied additional regression tests #3.
- Fujii Masao incorporated Manu's tests and fixed a regression discovered in the first patch by postponing implicit NOT NULL preparation until all explicit constraints had been transformed, allowing explicitly named constraints to take precedence regardless of subcommand order #7.
- Manu tested the revised patch against 32 scenarios on both branches, confirmed that the named-constraint regression was fixed without new failures in that set, and reported passing regression suites #8.
- Fujii Masao committed #7 unchanged apart from its base as dd97e0c8e3, crediting Manuel Reyes Bravo as co-author and targeting backpatches through PostgreSQL 18; his final message confirmed the push, leaving no outstanding work identified in the thread #9.