diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-08-18 13:01:05 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-08-18 13:01:05 -0400 |
commit | c4b841ba6aa9252ab9dacd59d317aba8cfa9b31a (patch) | |
tree | f04bad7b7d401e1639c2fad616242dced8609c52 /src/backend/executor/nodeModifyTable.c | |
parent | a20aac890a89e6f88e841dedbbfa8d9d5f7309fc (diff) | |
download | postgresql-c4b841ba6aa9252ab9dacd59d317aba8cfa9b31a.tar.gz postgresql-c4b841ba6aa9252ab9dacd59d317aba8cfa9b31a.zip |
Fix interaction of triggers, partitioning, and EXPLAIN ANALYZE.
Add a new EState member es_leaf_result_relations, so that the trigger
code knows about ResultRelInfos created by tuple routing. Also make
sure ExplainPrintTriggers knows about partition-related
ResultRelInfos.
Etsuro Fujita, reviewed by Amit Langote
Discussion: http://postgr.es/m/57163e18-8e56-da83-337a-22f2c0008051@lab.ntt.co.jp
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
-rw-r--r-- | src/backend/executor/nodeModifyTable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index 36b2b43bc62..70a6b847a0e 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -1919,6 +1919,7 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags) ExecSetupPartitionTupleRouting(rel, node->nominalRelation, + estate, &partition_dispatch_info, &partitions, &partition_tupconv_maps, |