]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Propagate trigger arguments to partitions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 9 Jul 2019 21:16:36 +0000 (17:16 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 9 Jul 2019 21:16:36 +0000 (17:16 -0400)
commitae0a2945b45ce63b7945284a7ddbb3e1c286fe95
treec35eedc32db1799710cb8304d5a898bad3b797e6
parent48d6d5a2afa59c4cf83cad6719cbbf298ef27c08
Propagate trigger arguments to partitions

We were creating the cloned triggers with an empty list of arguments,
losing the ones that had been specified by the user when creating the
trigger in the partitioned table.  Repair.

This was forgotten in commit 86f575948c77.

Author: Patrick McHardy
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/20190709130027.amr2cavjvo7rdvac@access1.trash.net
Discussion: https://postgr.es/m/15752-123bc90287986de4@postgresql.org
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/test/regress/expected/triggers.out
src/test/regress/sql/triggers.sql