postgresql/src/backend
Alvaro Herrera df80fa2ee5
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 86f575948c.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20200930223450.GA14848@telsasoft.com
2021-07-16 13:01:43 -04:00
..
access Advance old-segment horizon properly after slot invalidation 2021-07-16 12:07:30 -04:00
bootstrap Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
catalog Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
commands Preserve firing-on state when cloning row triggers to partitions 2021-07-16 13:01:43 -04:00
executor Change the name of the Result Cache node to Memoize 2021-07-14 12:43:58 +12:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Prepare for forthcoming LLVM 13 API change. 2021-06-25 11:28:20 +12:00
lib Fix typo in comment 2021-04-20 14:35:16 +02:00
libpq Add more sanity checks in SASL exchanges 2021-07-10 21:45:28 +09:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Change the name of the Result Cache node to Memoize 2021-07-14 12:43:58 +12:00
optimizer Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
parser Improve reporting of "conflicting or redundant options" errors. 2021-07-15 08:49:45 +01:00
partitioning Remove unused function parameter in get_qual_from_partbound 2021-07-14 09:52:04 -04:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
postmaster Remove unnecessary assertion in postmaster.c 2021-07-15 15:00:45 +09:00
regex Fix performance issue in new regex match-all detection code. 2021-05-03 11:42:31 -04:00
replication Advance old-segment horizon properly after slot invalidation 2021-07-16 12:07:30 -04:00
rewrite Reject cases where a query in WITH rewrites to just NOTIFY. 2021-07-09 11:02:26 -04:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Error message refactoring 2021-06-27 09:41:16 +02:00
storage Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
tcop Improve reporting of "conflicting or redundant options" errors. 2021-07-15 08:49:45 +01:00
tsearch Improve various places that double the size of a buffer 2021-07-01 15:29:06 +12:00
utils Remove unused function parameter in get_qual_from_partbound 2021-07-14 09:52:04 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2021-05-10 14:36:21 +02:00