diff options
author | Tom Lane | 2005-06-10 22:25:37 +0000 |
---|---|---|
committer | Tom Lane | 2005-06-10 22:25:37 +0000 |
commit | 2f1210629cf357fd0b6035e47ef10f240c82f6d5 (patch) | |
tree | 70e09751318b83743341f407903f9a0421fb052f /src/include | |
parent | 111e29ef5ebebef8480abbd1f41e2956ede055b3 (diff) |
Separate predicate-testing code out of indxpath.c, making it a module
in its own right. As proposed by Simon Riggs, but with some editorializing
of my own.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/optimizer/paths.h | 3 | ||||
-rw-r--r-- | src/include/optimizer/predtest.h | 23 |
2 files changed, 24 insertions, 2 deletions
diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h index f0c2e64599f..be46bf53dd4 100644 --- a/src/include/optimizer/paths.h +++ b/src/include/optimizer/paths.h @@ -7,7 +7,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.84 2005/06/05 22:32:58 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/paths.h,v 1.85 2005/06/10 22:25:37 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -49,7 +49,6 @@ extern bool match_index_to_operand(Node *operand, int indexcol, extern List *expand_indexqual_conditions(IndexOptInfo *index, List *clausegroups); extern void check_partial_indexes(PlannerInfo *root, RelOptInfo *rel); -extern bool pred_test(List *predicate_list, List *restrictinfo_list); extern List *flatten_clausegroups_list(List *clausegroups); /* diff --git a/src/include/optimizer/predtest.h b/src/include/optimizer/predtest.h new file mode 100644 index 00000000000..cfa58f650a1 --- /dev/null +++ b/src/include/optimizer/predtest.h @@ -0,0 +1,23 @@ +/*------------------------------------------------------------------------- + * + * predtest.h + * prototypes for predtest.c + * + * + * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * $PostgreSQL: pgsql/src/include/optimizer/predtest.h,v 1.1 2005/06/10 22:25:37 tgl Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef PREDTEST_H +#define PREDTEST_H + +#include "nodes/primnodes.h" + + +extern bool predicate_implied_by(List *predicate_list, + List *restrictinfo_list); + +#endif /* PREDTEST_H */ |