pgsql: Fix cloning of row triggers to sub-partitions

2020-01-02 Thread Alvaro Herrera
Fix cloning of row triggers to sub-partitions When row triggers exist in partitioned partitions that are not either part of FKs or deferred unique constraints, they are not correctly cloned to their partitions. That's because they are marked "internal", and those are purposefully skipped when doi

pgsql: Fix cloning of row triggers to sub-partitions

2020-01-02 Thread Alvaro Herrera
Fix cloning of row triggers to sub-partitions When row triggers exist in partitioned partitions that are not either part of FKs or deferred unique constraints, they are not correctly cloned to their partitions. That's because they are marked "internal", and those are purposefully skipped when doi

pgsql: Fix cloning of row triggers to sub-partitions

2020-01-02 Thread Alvaro Herrera
Fix cloning of row triggers to sub-partitions When row triggers exist in partitioned partitions that are not either part of FKs or deferred unique constraints, they are not correctly cloned to their partitions. That's because they are marked "internal", and those are purposefully skipped when doi