mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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 86f575948c
.
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
This commit is contained in:
@ -1172,7 +1172,6 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
|
||||
*/
|
||||
childStmt = (CreateTrigStmt *) copyObject(stmt);
|
||||
childStmt->funcname = NIL;
|
||||
childStmt->args = NIL;
|
||||
childStmt->whenClause = NULL;
|
||||
|
||||
/* If there is a WHEN clause, create a modified copy of it */
|
||||
|
Reference in New Issue
Block a user