Skip to content

Commit ab16485

Browse files
committed
Improve comments about RelOptInfo.reltargetlist.
1 parent 2a0083e commit ab16485

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/include/nodes/relation.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.160 2008/10/04 21:56:55 tgl Exp $
10+
* $PostgreSQL: pgsql/src/include/nodes/relation.h,v 1.161 2008/10/17 20:23:45 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -244,8 +244,10 @@ typedef struct PlannerInfo
244244
* width - avg. number of bytes per tuple in the relation after the
245245
* appropriate projections have been done (ie, output width)
246246
* reltargetlist - List of Var nodes for the attributes we need to
247-
* output from this relation (in no particular order)
248-
* NOTE: in a child relation, may contain RowExprs
247+
* output from this relation (in no particular order,
248+
* but all rels of an appendrel set must use same order)
249+
* NOTE: in a child relation, may contain RowExpr or
250+
* ConvertRowtypeExpr representing a whole-row Var
249251
* pathlist - List of Path nodes, one for each potentially useful
250252
* method of generating the relation
251253
* cheapest_startup_path - the pathlist member with lowest startup cost
@@ -337,7 +339,7 @@ typedef struct RelOptInfo
337339
int width; /* estimated avg width of result tuples */
338340

339341
/* materialization information */
340-
List *reltargetlist; /* needed Vars */
342+
List *reltargetlist; /* Vars to be output by scan of relation */
341343
List *pathlist; /* Path structures */
342344
struct Path *cheapest_startup_path;
343345
struct Path *cheapest_total_path;
@@ -350,7 +352,7 @@ typedef struct RelOptInfo
350352
AttrNumber max_attr; /* largest attrno of rel */
351353
Relids *attr_needed; /* array indexed [min_attr .. max_attr] */
352354
int32 *attr_widths; /* array indexed [min_attr .. max_attr] */
353-
List *indexlist;
355+
List *indexlist; /* list of IndexOptInfo */
354356
BlockNumber pages;
355357
double tuples;
356358
struct Plan *subplan; /* if subquery */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy