diff options
author | Robert Haas <rhaas@postgresql.org> | 2018-02-08 14:29:05 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2018-02-08 14:29:05 -0500 |
commit | e44dd84325c277fd031b9ef486c51a0946c7d3a0 (patch) | |
tree | a501ae2a890898c23dcac6a791fe08299ed9b3c6 /src/include/nodes/execnodes.h | |
parent | 88fdc7006018b92d6ec92c54b3819764703daaba (diff) | |
download | postgresql-e44dd84325c277fd031b9ef486c51a0946c7d3a0.tar.gz |
Avoid listing the same ResultRelInfo in more than one EState list.
Doing so causes EXPLAIN ANALYZE to show trigger statistics multiple
times. Commit 2f178441044be430f6b4d626e4dae68a9a6f6cec seems to
be to blame for this.
Amit Langote, revieed by Amit Khandekar, Etsuro Fujita, and me.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 54ce63f147..286d55be03 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -466,8 +466,11 @@ typedef struct EState ResultRelInfo *es_root_result_relations; /* array of ResultRelInfos */ int es_num_root_result_relations; /* length of the array */ - /* Info about leaf partitions of partitioned table(s) for insert queries: */ - List *es_leaf_result_relations; /* List of ResultRelInfos */ + /* + * The following list contains ResultRelInfos created by the tuple + * routing code for partitions that don't already have one. + */ + List *es_tuple_routing_result_relations; /* Stuff used for firing triggers: */ List *es_trig_target_relations; /* trigger-only ResultRelInfos */ |