diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-27 06:29:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-27 06:29:49 +0000 |
commit | 926e8a00d38e1873369ab9a24062440c82d7731c (patch) | |
tree | 9034ee995948ac39c0b6dd1606bc1f6213e7c8dd /src/include/optimizer/paths.h | |
parent | febc9a613cd523de84da883a81e2040c3b1336a6 (diff) | |
download | postgresql-926e8a00d38e1873369ab9a24062440c82d7731c.tar.gz postgresql-926e8a00d38e1873369ab9a24062440c82d7731c.zip |
Add a back-link from IndexOptInfo structs to their parent RelOptInfo
structs. There are many places in the planner where we were passing
both a rel and an index to subroutines, and now need only pass the
index struct. Notationally simpler, and perhaps a tad faster.
Diffstat (limited to 'src/include/optimizer/paths.h')
-rw-r--r-- | src/include/optimizer/paths.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h index d159e1ecf4e..28c44444d70 100644 --- a/src/include/optimizer/paths.h +++ b/src/include/optimizer/paths.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/paths.h,v 1.79 2005/03/26 23:29:20 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/paths.h,v 1.80 2005/03/27 06:29:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -38,11 +38,9 @@ extern void debug_print_rel(Query *root, RelOptInfo *rel); extern void create_index_paths(Query *root, RelOptInfo *rel); extern Path *best_inner_indexscan(Query *root, RelOptInfo *rel, Relids outer_relids, JoinType jointype); -extern List *group_clauses_by_indexkey_for_or(RelOptInfo *rel, - IndexOptInfo *index, +extern List *group_clauses_by_indexkey_for_or(IndexOptInfo *index, Expr *orsubclause); -extern List *expand_indexqual_conditions(RelOptInfo *rel, - IndexOptInfo *index, +extern List *expand_indexqual_conditions(IndexOptInfo *index, List *clausegroups); extern void check_partial_indexes(Query *root, RelOptInfo *rel); extern bool pred_test(List *predicate_list, List *restrictinfo_list); @@ -108,8 +106,7 @@ extern Path *get_cheapest_path_for_pathkeys(List *paths, List *pathkeys, extern Path *get_cheapest_fractional_path_for_pathkeys(List *paths, List *pathkeys, double fraction); -extern List *build_index_pathkeys(Query *root, RelOptInfo *rel, - IndexOptInfo *index, +extern List *build_index_pathkeys(Query *root, IndexOptInfo *index, ScanDirection scandir); extern List *build_subquery_pathkeys(Query *root, RelOptInfo *rel, Query *subquery); |