Re: Rename of triggers for partitioned tables

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Arne Roland <A.Roland@index.de>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-20T14:42:23Z
Lists: pgsql-hackers
On 2021-Jul-20, Arne Roland wrote:

> Thank you! I get a compile time error

> trigger.c:1588:17: note: in expansion of macro ‘PG_USED_FOR_ASSERTS_ONLY’
>   int  found = 0 PG_USED_FOR_ASSERTS_ONLY;
>                  ^~~~~~~~~~~~~~~~~~~~~~~~

Oh, I misplaced the annotation of course.  It has to be

   int  found PG_USED_FOR_ASSERTS_ONLY = 0;

-- 
Álvaro Herrera           39°49'30"S 73°17'W  —  https://www.EnterpriseDB.com/



Commits

  1. Remove newly added useless assertion check

  2. Make ALTER TRIGGER RENAME consistent for partitioned tables

  3. Fix pg_dump for disabled triggers on partitioned tables

  4. Preserve firing-on state when cloning row triggers to partitions

  5. Fix ALTER TABLE .. ENABLE/DISABLE TRIGGER recursion

  6. Record parents of triggers

  7. Allow FOR EACH ROW triggers on partitioned tables