Update obsolete comments in ResultRelInfo struct.

Commit c5b7ba4e6 changed things so that the ri_RootResultRelInfo field
of this struct is set for both partitions and inheritance children and
used for tuple routing and transition capture (before that commit, it
was only set for partitions to route tuples into), but failed to update
these comments.

Author: Etsuro Fujita <etsuro.fujita@gmail.com>
Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>
Discussion: https://postgr.es/m/CAPmGK14NF5CcdCmTZpxrvpvBiT0y4EqKikW1r_wAu1CEHeOmUA%40mail.gmail.com
Backpatch-through: 14
REL_15_STABLE
Etsuro Fujita 4 weeks ago
parent 82f9968824
commit 242e5afdae
  1. 14
      src/include/nodes/execnodes.h

@ -528,16 +528,14 @@ typedef struct ResultRelInfo
ExprState *ri_PartitionCheckExpr;
/*
* Information needed by tuple routing target relations
* Information needed by child result relations
*
* RootResultRelInfo gives the target relation mentioned in the query, if
* it's a partitioned table. It is not set if the target relation
* mentioned in the query is an inherited table, nor when tuple routing is
* not needed.
* ri_RootResultRelInfo gives the target relation mentioned in the query.
* Used as the root for tuple routing and/or transition capture.
*
* RootToPartitionMap and PartitionTupleSlot, initialized by
* ExecInitRoutingInfo, are non-NULL if partition has a different tuple
* format than the root table.
* ri_RootToPartitionMap and ri_PartitionTupleSlot, initialized by
* ExecInitRoutingInfo, are non-NULL if the relation is a partition to
* route tuples into and has a different tuple format than the root table.
*/
struct ResultRelInfo *ri_RootResultRelInfo;
TupleConversionMap *ri_RootToPartitionMap;

Loading…
Cancel
Save