postgresql/src/include/catalog
Tom Lane 8a30cc2127 Make the planner estimate costs for nestloop inner indexscans on the basis
that the Mackert-Lohmann formula applies across all the repetitions of the
nestloop, not just each scan independently.  We use the M-L formula to
estimate the number of pages fetched from the index as well as from the table;
that isn't what it was designed for, but it seems reasonably applicable
anyway.  This makes large numbers of repetitions look much cheaper than
before, which accords with many reports we've received of overestimation
of the cost of a nestloop.  Also, change the index access cost model to
charge random_page_cost per index leaf page touched, while explicitly
not counting anything for access to metapage or upper tree pages.  This
may all need tweaking after we get some field experience, but in simple
tests it seems to be giving saner results than before.  The main thing
is to get the infrastructure in place to let cost_index() and amcostestimate
functions take repeated scans into account at all.  Per my recent proposal.

Note: this patch changes pg_proc.h, but I did not force initdb because
the changes are basically cosmetic --- the system does not look into
pg_proc to decide how to call an index amcostestimate function, and
there's no way to call such a function from SQL at all.
2006-06-06 17:59:58 +00:00
..
catalog.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
catversion.h * Add support NULL to GiST. 2006-05-24 11:01:39 +00:00
dependency.h Revert patch pending more discussion: 2006-04-30 01:08:07 +00:00
duplicate_oids First phase of project to use fixed OIDs for all system catalogs and 2005-04-14 01:38:22 +00:00
heap.h Revert patch pending more discussion: 2006-04-30 01:08:07 +00:00
index.h Clean up code associated with updating pg_class statistics columns 2006-05-10 23:18:39 +00:00
indexing.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
namespace.h Provide a namespace.c function for lookup of an operator with exact 2006-05-01 23:22:43 +00:00
pg_aggregate.h Implement 4 new aggregate functions from SQL2003. Specifically: var_pop(), 2006-03-10 20:15:28 +00:00
pg_am.h * Add support NULL to GiST. 2006-05-24 11:01:39 +00:00
pg_amop.h Add GIN opclases for another types 2006-05-02 15:23:16 +00:00
pg_amproc.h Add GIN opclases for another types 2006-05-02 15:23:16 +00:00
pg_attrdef.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_attribute.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_auth_members.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_authid.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_autovacuum.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_cast.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_class.h Remove traces of otherwise unused RELKIND_SPECIAL symbol. Leave the psql bits 2006-05-28 02:27:08 +00:00
pg_constraint.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_control.h Don't use BLCKSZ for the physical length of the pg_control file, but 2006-04-04 22:39:59 +00:00
pg_conversion.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_database.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_depend.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_description.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_index.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_inherits.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_language.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_largeobject.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_listener.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_namespace.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_opclass.h Add GIN opclases for another types 2006-05-02 15:23:16 +00:00
pg_operator.h GIN: Generalized Inverted iNdex. 2006-05-02 11:28:56 +00:00
pg_pltemplate.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_proc.h Make the planner estimate costs for nestloop inner indexscans on the basis 2006-06-06 17:59:58 +00:00
pg_rewrite.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_shdepend.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_shdescription.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_statistic.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_tablespace.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pg_trigger.h Add CVS tag lines to files that were lacking them. 2006-03-11 04:38:42 +00:00
pg_type.h Fix a bunch of problems with domains by making them use special input functions 2006-04-05 22:11:58 +00:00
unused_oids First phase of project to use fixed OIDs for all system catalogs and 2005-04-14 01:38:22 +00:00