OSDN Git Service

Add a GUC parameter seq_page_cost, and use that everywhere we formerly
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Jun 2006 02:49:58 +0000 (02:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Jun 2006 02:49:58 +0000 (02:49 +0000)
commiteed6c9ed7e243948e440ed1388591b7fa28f5827
treeaef8821bdd57ed83e2c1b2ce27014e45beed0934
parenta837851dc060515c1f7023f74d75156a80c2c936
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.
doc/src/sgml/config.sgml
doc/src/sgml/indexam.sgml
doc/src/sgml/perform.sgml
src/backend/optimizer/path/costsize.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/optimizer/cost.h