|
34 | 34 | * Note that a relation's rows count (and, by extension, a Plan's plan_rows) |
35 | 35 | * are set without regard to any LIMIT, so that this equation works properly. |
36 | 36 | * (Also, these routines guarantee not to set the rows count to zero, so there |
37 | | - * will be no zero divide.) RelOptInfos, Paths, and Plans themselves never |
38 | | - * account for LIMIT. |
| 37 | + * will be no zero divide.) The LIMIT is applied as a separate Plan node. |
39 | 38 | * |
40 | 39 | * |
41 | 40 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group |
42 | 41 | * Portions Copyright (c) 1994, Regents of the University of California |
43 | 42 | * |
44 | 43 | * IDENTIFICATION |
45 | | - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.66 2001/01/24 19:42:57 momjian Exp $ |
| 44 | + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.67 2001/02/15 17:46:40 tgl Exp $ |
46 | 45 | * |
47 | 46 | *------------------------------------------------------------------------- |
48 | 47 | */ |
@@ -96,15 +95,10 @@ static double page_size(double tuples, int width); |
96 | 95 | * cost_seqscan |
97 | 96 | * Determines and returns the cost of scanning a relation sequentially. |
98 | 97 | * |
99 | | - * If the relation is a temporary to be materialized from a query |
100 | | - * embedded within a data field (determined by 'relid' containing an |
101 | | - * attribute reference), then a predetermined constant is returned (we |
102 | | - * have NO IDEA how big the result of a POSTQUEL procedure is going to be). |
103 | | - * |
104 | 98 | * Note: for historical reasons, this routine and the others in this module |
105 | 99 | * use the passed result Path only to store their startup_cost and total_cost |
106 | 100 | * results into. All the input data they need is passed as separate |
107 | | - * parameters, even though much of it could be extracted from theresultPath. |
| 101 | + * parameters, even though much of it could be extracted from the Path. |
108 | 102 | */ |
109 | 103 | void |
110 | 104 | cost_seqscan(Path*path,RelOptInfo*baserel) |
|