diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-07-16 13:01:43 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-07-16 13:01:43 -0400 |
commit | eef92de11e50837e4a0d02fc7269fdba7c97e583 (patch) | |
tree | 7b28bd852f029ad9e8d3892618877995f8016d5e /src/backend/executor/nodeModifyTable.c | |
parent | e5bcbb10707b844471c67d5e5fd8226d1891ee97 (diff) | |
download | postgresql-eef92de11e50837e4a0d02fc7269fdba7c97e583.tar.gz postgresql-eef92de11e50837e4a0d02fc7269fdba7c97e583.zip |
Preserve firing-on state when cloning row triggers to partitions
When triggers are cloned from partitioned tables to their partitions,
the 'tgenabled' flag (origin/replica/always/disable) was not propagated.
Make it so that the flag on the trigger on partition is initially set to
the same value as on the partitioned table.
Add a test case to verify the behavior.
Backpatch to 11, where this appeared in commit 86f575948c77.
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20200930223450.GA14848@telsasoft.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions