Skip to content

Commit 6ea9516

Browse files
committed
Fix comment related to calculation location of total_table_pages
As of commit c6e4133, the calculation happens in make_one_rel() and not query_planner(). Author: Amit Langote Discussion: https://postgr.es/m/c7a04a90-42e6-28a4-811a-a7e352831ba1@lab.ntt.co.jp
1 parent 7215efd commit 6ea9516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/optimizer/path/costsize.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ extract_nonindex_conditions(List *qual_clauses, List *indexclauses)
815815
* product rather than calculating it here. "pages" is the number of pages
816816
* in the object under consideration (either an index or a table).
817817
* "index_pages" is the amount to add to the total table space, which was
818-
* computed for us by query_planner.
818+
* computed for us by make_one_rel.
819819
*
820820
* Caller is expected to have ensured that tuples_fetched is greater than zero
821821
* and rounded to integer (see clamp_row_est). The result will likewise be

0 commit comments

Comments
 (0)