diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-18 16:11:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-18 16:11:42 +0000 |
commit | 6254465d0621f724cdc9a1e99da24fa8a29f579d (patch) | |
tree | 84bd08321ce84de9daf6ab5264c889e5b5a92e4e /src/include | |
parent | 50450049581566ed47016cd89ba03b90be7ea1d0 (diff) |
Extend code that deduces implied equality clauses to detect whether a
clause being added to a particular restriction-clause list is redundant
with those already in the list. This avoids useless work at runtime,
and (perhaps more importantly) keeps the selectivity estimation routines
from generating too-small estimates of numbers of output rows.
Also some minor improvements in OPTIMIZER_DEBUG displays.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/optimizer/paths.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h index 08fe2ccd776..1dcb2cc2730 100644 --- a/src/include/optimizer/paths.h +++ b/src/include/optimizer/paths.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: paths.h,v 1.55 2001/08/21 16:36:06 tgl Exp $ + * $Id: paths.h,v 1.56 2001/10/18 16:11:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -31,6 +31,10 @@ extern int geqo_rels; extern RelOptInfo *make_one_rel(Query *root); extern RelOptInfo *make_fromexpr_rel(Query *root, FromExpr *from); +#ifdef OPTIMIZER_DEBUG +extern void debug_print_rel(Query *root, RelOptInfo *rel); +#endif + /* * indxpath.c * routines to generate index paths @@ -111,6 +115,8 @@ extern List *build_join_pathkeys(Query *root, List *outer_pathkeys); extern List *make_pathkeys_for_sortclauses(List *sortclauses, List *tlist); +extern void cache_mergeclause_pathkeys(Query *root, + RestrictInfo *restrictinfo); extern List *find_mergeclauses_for_pathkeys(Query *root, List *pathkeys, List *restrictinfos); |