model-writtenrun 1160 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Arthur Zakirov reported that adding catalog entries for NOT NULL constraints had moved the object-alter hook before the attnotnull update, causing extensions to observe stale attribute information, and asked whether this was intentional #1.
- Álvaro Herrera confirmed that the ordering change was unintentional and invited a patch #2.
- Arthur Zakirov submitted equivalent master and PostgreSQL 18 patches moving InvokeObjectPostAlterHook after set_attnotnull, and requested a backpatch to PostgreSQL 18 where the regression began #3.
- Álvaro Herrera committed the submitted change unchanged as 6958077ceb, explaining that set_attnotnull advances the command counter so the hook can see the catalog update.
- Álvaro Herrera confirmed that the fix had landed on both branches and explained that he cherry-picked the master patch into PostgreSQL 18 instead of using the separate branch attachment, completing the work #4.