pgsql: Propagate trigger arguments to partitions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Propagate trigger arguments to partitions
Date: 2019-07-09 21:23:45
Message-ID: E1hkxaT-0000oy-0G@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ae0a2945b45ce63b7945284a7ddbb3e1c286fe95

Modified Files
--------------
src/backend/commands/tablecmds.c | 23 ++++++++++++++++++++++-
src/backend/commands/trigger.c | 1 -
src/test/regress/expected/triggers.out | 24 ++++++++++++++++++++++++
src/test/regress/sql/triggers.sql | 23 +++++++++++++++++++++++
4 files changed, 69 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-07-09 22:17:21 pgsql: Pass QueryEnvironment down to EvalPlanQual's EState.
Previous Message Peter Eisentraut 2019-07-09 16:04:33 pgsql: Message style improvements