summaryrefslogtreecommitdiff
path: root/src/include/nodes/execnodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-10-17 16:41:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-10-17 16:41:00 -0400
commit26cb82030fa83e222f5744fb8254ec9073162273 (patch)
treecebf2893b90a6c0fd7f70fa3714e61be5ca86dfd /src/include/nodes/execnodes.h
parent48d818ede15b3e43546e8d49dc19a3021bc773cf (diff)
Improve some comments related to executor result relations.
es_leaf_result_relations doesn't exist; perhaps this was an old name for es_tuple_routing_result_relations, or maybe this comment has gone unmaintained through multiple rounds of whacking the code around. Related comment in execnodes.h was both obsolete and ungrammatical.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r--src/include/nodes/execnodes.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 834708944bf..880a03e4e4b 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -508,11 +508,10 @@ typedef struct EState
ResultRelInfo *es_result_relation_info; /* currently active array elt */
/*
- * Info about the target partitioned target table root(s) for
- * update/delete queries. They required only to fire any per-statement
- * triggers defined on the table. It exists separately from
- * es_result_relations, because partitioned tables don't appear in the
- * plan tree for the update/delete cases.
+ * Info about the partition root table(s) for insert/update/delete queries
+ * targeting partitioned tables. Only leaf partitions are mentioned in
+ * es_result_relations, but we need access to the roots for firing
+ * triggers and for runtime tuple routing.
*/
ResultRelInfo *es_root_result_relations; /* array of ResultRelInfos */
int es_num_root_result_relations; /* length of the array */