diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-17 00:52:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-17 00:52:53 +0000 |
commit | a536ed53bca40cb0d199824e358a86fcfd5db7f2 (patch) | |
tree | c61f5d7535a780bc7cb709ea84e0450c36f2e9a8 /src/include/utils/selfuncs.h | |
parent | d372bba02d946b93d928ffe06682f23ff33b9277 (diff) | |
download | postgresql-a536ed53bca40cb0d199824e358a86fcfd5db7f2.tar.gz postgresql-a536ed53bca40cb0d199824e358a86fcfd5db7f2.zip |
Make use of statistics on index expressions. There are still some
corner cases that could stand improvement, but it does all the basic
stuff. A byproduct is that the selectivity routines are no longer
constrained to working on simple Vars; we might in future be able to
improve the behavior for subexpressions that don't match indexes.
Diffstat (limited to 'src/include/utils/selfuncs.h')
-rw-r--r-- | src/include/utils/selfuncs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h index 873af8b9876..797e0a4c700 100644 --- a/src/include/utils/selfuncs.h +++ b/src/include/utils/selfuncs.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/selfuncs.h,v 1.16 2003/11/29 22:41:16 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/utils/selfuncs.h,v 1.17 2004/02/17 00:52:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -77,6 +77,9 @@ extern void mergejoinscansel(Query *root, Node *clause, extern double estimate_num_groups(Query *root, List *groupExprs, double input_rows); +extern Selectivity estimate_hash_bucketsize(Query *root, Node *hashkey, + int nbuckets); + extern Datum btcostestimate(PG_FUNCTION_ARGS); extern Datum rtcostestimate(PG_FUNCTION_ARGS); extern Datum hashcostestimate(PG_FUNCTION_ARGS); |