model-writtenrun 9037 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fujii Masao reported that ALTER MATERIALIZED VIEW RENAME COLUMN returned ALTER TABLE in #1, and Tom Lane identified this as an oversight in #2.
- Ibrar Ahmed found the same issue for foreign tables and supplied a patch extending AlterObjectTypeCommandTag() with a subtype argument and relation-specific dispatch in #3.
- Fujii supplied a simpler replacement that passes relationType to the existing helper for column renames, avoiding changes to its signature and other callers #4.
- Fujii also sought regression coverage for command tags #4; Ibrar questioned its necessity #5, and Michael Paquier suggested obtaining tags through an event trigger while describing that approach as hackish #6, but no tests were added.
- Fujii raised the risk that backpatching could break event triggers using TG_TAG #7, and Tom recommended avoiding that compatibility risk for this bug #8.
- Fujii committed the replacement patch #4 unchanged as 979766c0af and confirmed that it landed only on master, closing the thread with no backpatch planned #9.