model-writtenrun 9758 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Rushabh Lathia reported that ALTER TRIGGER ... RENAME TO failed after WITH OIDS removal because renametrig() wrote the new name into the wrong tuple, and supplied a fix in #1.
- The patch in #1 obtains the trigger structure from the copied, modifiable tuple before updating its name.
- Rushabh also added a regression test in #1 that checks the renamed trigger exists and then drops it using its new name.
- Andres Freund committed the patch as 8cc157b234, retaining the code fix and extending the test to verify that the old name no longer exists.
- Andres confirmed the fix was pushed in #2, closing the thread with the submitted work committed.