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
337339int 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 */
341343List * pathlist ;/* Path structures */
342344struct Path * cheapest_startup_path ;
343345struct Path * cheapest_total_path ;
@@ -350,7 +352,7 @@ typedef struct RelOptInfo
350352AttrNumber max_attr ;/* largest attrno of rel */
351353Relids * attr_needed ;/* array indexed [min_attr .. max_attr] */
352354int32 * attr_widths ;/* array indexed [min_attr .. max_attr] */
353- List * indexlist ;
355+ List * indexlist ;/* list of IndexOptInfo */
354356BlockNumber pages ;
355357double tuples ;
356358struct Plan * subplan ;/* if subquery */