From a536ed53bca40cb0d199824e358a86fcfd5db7f2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 17 Feb 2004 00:52:53 +0000 Subject: 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. --- src/backend/optimizer/util/relnode.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/backend/optimizer/util/relnode.c') diff --git a/src/backend/optimizer/util/relnode.c b/src/backend/optimizer/util/relnode.c index d6d093ea467..d5a5480c62e 100644 --- a/src/backend/optimizer/util/relnode.c +++ b/src/backend/optimizer/util/relnode.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/util/relnode.c,v 1.54 2003/12/08 18:19:58 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/util/relnode.c,v 1.55 2004/02/17 00:52:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -214,12 +214,8 @@ find_base_rel(Query *root, int relid) * find_join_rel * Returns relation entry corresponding to 'relids' (a set of RT indexes), * or NULL if none exists. This is for join relations. - * - * Note: there is probably no good reason for this to be called from - * anywhere except build_join_rel, but keep it as a separate routine - * just in case. */ -static RelOptInfo * +RelOptInfo * find_join_rel(Query *root, Relids relids) { List *joinrels; -- cgit v1.2.3