]> granicus.if.org Git - postgresql/commit
Fix interaction of triggers, partitioning, and EXPLAIN ANALYZE.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Aug 2017 17:01:05 +0000 (13:01 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Aug 2017 17:01:05 +0000 (13:01 -0400)
commitc4b841ba6aa9252ab9dacd59d317aba8cfa9b31a
treef04bad7b7d401e1639c2fad616242dced8609c52
parenta20aac890a89e6f88e841dedbbfa8d9d5f7309fc
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
src/backend/commands/copy.c
src/backend/commands/explain.c
src/backend/executor/execMain.c
src/backend/executor/execUtils.c
src/backend/executor/nodeModifyTable.c
src/include/executor/executor.h
src/include/nodes/execnodes.h