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

Lines changed: 1 addition & 1 deletion
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)
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