Re: Rename of triggers for partitioned tables
Arne Roland <a.roland@index.de>
From: Arne Roland <A.Roland@index.de>
To: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-27T00:05:02Z
Lists: pgsql-hackers
Attachments
- recursive_tgrename.1.patch (text/x-patch) patch
I'm too unhappy with the interface change, so please view attached patch instead. Regards Arne ________________________________ From: Arne Roland <A.Roland@index.de> Sent: Friday, November 27, 2020 12:28:31 AM To: Pg Hackers Subject: Rename of triggers for partitioned tables Hello, I got too annoyed at building queries for gexec all the time. So wrote a patch to fix the issue that the rename of partitioned trigger doesn't affect children. In case there isn't a dependent trigger with the same name on the child the function errors out. If the user touched the trigger of the child, it's not a sensitive idea to mess with it. I'm not happy with the interface change in trigger.h. Yet I don't like the idea of creating another layer of indirection either. Even though it's a small patch, there might be other things I'm missing, so I'd appreciate feedback. Regards Arne
Commits
-
Remove newly added useless assertion check
- 21b3aa9c8faf 15.0 landed
-
Make ALTER TRIGGER RENAME consistent for partitioned tables
- 80ba4bb38353 15.0 landed
-
Fix pg_dump for disabled triggers on partitioned tables
- ccfc3cbb341a 11.13 cited
-
Preserve firing-on state when cloning row triggers to partitions
- fed35bd4a650 11.13 cited
-
Fix ALTER TABLE .. ENABLE/DISABLE TRIGGER recursion
- bbb927b4db9b 14.0 cited
-
Record parents of triggers
- b9b408c48724 13.0 cited
-
Allow FOR EACH ROW triggers on partitioned tables
- 86f575948c77 11.0 cited