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/include/optimizer/pathnode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/optimizer/pathnode.h') diff --git a/src/include/optimizer/pathnode.h b/src/include/optimizer/pathnode.h index 379e2ba7a5e..3186b8d1c1f 100644 --- a/src/include/optimizer/pathnode.h +++ b/src/include/optimizer/pathnode.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/pathnode.h,v 1.53 2003/11/29 22:41:07 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/pathnode.h,v 1.54 2004/02/17 00:52:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -77,6 +77,7 @@ extern HashPath *create_hashjoin_path(Query *root, extern void build_base_rel(Query *root, int relid); extern RelOptInfo *build_other_rel(Query *root, int relid); extern RelOptInfo *find_base_rel(Query *root, int relid); +extern RelOptInfo *find_join_rel(Query *root, Relids relids); extern RelOptInfo *build_join_rel(Query *root, Relids joinrelids, RelOptInfo *outer_rel, -- cgit v1.2.3