mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Add a GUC parameter seq_page_cost, and use that everywhere we formerly
assumed that a sequential page fetch has cost 1.0. This patch doesn't in itself change the system's behavior at all, but it opens the door to people adopting other units of measurement for EXPLAIN costs. Also, if we ever decide it's worth inventing per-tablespace access cost settings, this change provides a workable intellectual framework for that.
This commit is contained in:
@ -175,12 +175,12 @@
|
||||
|
||||
# - Planner Cost Constants -
|
||||
|
||||
#seq_page_cost = 1.0 # measured on an arbitrary scale
|
||||
#random_page_cost = 4.0 # same scale as above
|
||||
#cpu_tuple_cost = 0.01 # same scale as above
|
||||
#cpu_index_tuple_cost = 0.001 # same scale as above
|
||||
#cpu_operator_cost = 0.0025 # same scale as above
|
||||
#effective_cache_size = 1000 # typically 8KB each
|
||||
#random_page_cost = 4 # units are one sequential page fetch
|
||||
# cost
|
||||
#cpu_tuple_cost = 0.01 # (same)
|
||||
#cpu_index_tuple_cost = 0.001 # (same)
|
||||
#cpu_operator_cost = 0.0025 # (same)
|
||||
|
||||
# - Genetic Query Optimizer -
|
||||
|
||||
|
Reference in New Issue
Block a user