diff options
| author | Tom Lane | 2004-03-14 23:41:27 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-03-14 23:41:27 +0000 |
| commit | 04226b640493a206b9927b8160fb48b864efcce6 (patch) | |
| tree | 5e51ef7885a18ef48ba6e0220d58c03e549ddab8 /src/include | |
| parent | e1d08faf043242338973f30a1d1d158498ea7f04 (diff) | |
Tweak planner so that index expressions and predicates are matched to
queries without regard to whether coercions are stated explicitly or
implicitly. Per suggestion from Stephan Szabo.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/nodes/primnodes.h | 4 | ||||
| -rw-r--r-- | src/include/optimizer/clauses.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index 6a9312b73f..065ca656a7 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -10,7 +10,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/primnodes.h,v 1.94 2004/01/07 18:43:36 neilc Exp $ + * $PostgreSQL: pgsql/src/include/nodes/primnodes.h,v 1.95 2004/03/14 23:41:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -307,7 +307,7 @@ typedef enum CoercionForm COERCE_EXPLICIT_CALL, /* display as a function call */ COERCE_EXPLICIT_CAST, /* display as an explicit cast */ COERCE_IMPLICIT_CAST, /* implicit cast, so hide it */ - COERCE_DONTCARE /* special case for pathkeys */ + COERCE_DONTCARE /* special case for planner */ } CoercionForm; /* diff --git a/src/include/optimizer/clauses.h b/src/include/optimizer/clauses.h index 947c4467e7..09f0822f46 100644 --- a/src/include/optimizer/clauses.h +++ b/src/include/optimizer/clauses.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/clauses.h,v 1.72 2004/01/05 18:04:39 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/clauses.h,v 1.73 2004/03/14 23:41:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -63,6 +63,8 @@ extern bool has_distinct_on_clause(Query *query); extern int NumRelids(Node *clause); extern void CommuteClause(OpExpr *clause); +extern void set_coercionform_dontcare(Node *node); + extern Node *eval_const_expressions(Node *node); extern bool expression_tree_walker(Node *node, bool (*walker) (), |
