diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-19 07:03:34 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-02-19 07:03:34 +0000 |
| commit | 7c5e5439d2a64ee82d54be2e064a4bb4602bad30 (patch) | |
| tree | da8d85b50e284413823da3bc98975c03278cb582 /src/include/optimizer/clauses.h | |
| parent | 90c301aaa9377d385d00d93462f3f656ada8981e (diff) | |
| download | postgresql-7c5e5439d2a64ee82d54be2e064a4bb4602bad30.tar.gz | |
Get rid of some old and crufty global variables in the planner. When
this code was last gone over, there wasn't really any alternative to
globals because we didn't have the PlannerInfo struct being passed all
through the planner code. Now that we do, we can restructure things
to avoid non-reentrancy. I'm fooling with this because otherwise I'd
have had to add another global variable for the planned compact
range table list.
Diffstat (limited to 'src/include/optimizer/clauses.h')
| -rw-r--r-- | src/include/optimizer/clauses.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/optimizer/clauses.h b/src/include/optimizer/clauses.h index 5001125914..bd4a796435 100644 --- a/src/include/optimizer/clauses.h +++ b/src/include/optimizer/clauses.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/optimizer/clauses.h,v 1.86 2007/01/22 01:35:22 tgl Exp $ + * $PostgreSQL: pgsql/src/include/optimizer/clauses.h,v 1.87 2007/02/19 07:03:34 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -77,7 +77,7 @@ extern void set_coercionform_dontcare(Node *node); extern Node *eval_const_expressions(Node *node); -extern Node *estimate_expression_value(Node *node); +extern Node *estimate_expression_value(PlannerInfo *root, Node *node); extern bool expression_tree_walker(Node *node, bool (*walker) (), void *context); |
