]> granicus.if.org Git - postgresql/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)
commit2c84ea6cf994f5853de0f03600aa5df8156cf9f4
treee1dd5915899f1108e51239094cef50d81268afa5
parente435c1e7d9d88264453c30f8d1969cb836a60509
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