Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab16485

Browse files
committed
Improve comments about RelOptInfo.reltargetlist.
1 parent2a0083e commitab16485

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
intwidth;/* estimated avg width of result tuples */
338340

339341
/* materialization information */
340-
List*reltargetlist;/*neededVars */
342+
List*reltargetlist;/* Vars to be output by scan of relation */
341343
List*pathlist;/* Path structures */
342344
structPath*cheapest_startup_path;
343345
structPath*cheapest_total_path;
@@ -350,7 +352,7 @@ typedef struct RelOptInfo
350352
AttrNumbermax_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
BlockNumberpages;
355357
doubletuples;
356358
structPlan*subplan;/* if subquery */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp