diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-05 22:32:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-05 22:32:58 +0000 |
commit | 9ab4d98168407c3436d3f0e02d32720b0d9075a0 (patch) | |
tree | 3572d316a54a99512277ead2ad757032998b2839 /src/backend/optimizer/path/tidpath.c | |
parent | 22dbd540478517ff6c55381ae7ce07a3a2e64474 (diff) | |
download | postgresql-9ab4d98168407c3436d3f0e02d32720b0d9075a0.tar.gz postgresql-9ab4d98168407c3436d3f0e02d32720b0d9075a0.zip |
Remove planner's private fields from Query struct, and put them into
a new PlannerInfo struct, which is passed around instead of the bare
Query in all the planning code. This commit is essentially just a
code-beautification exercise, but it does open the door to making
larger changes to the planner data structures without having to muck
with the widely-known Query struct.
Diffstat (limited to 'src/backend/optimizer/path/tidpath.c')
-rw-r--r-- | src/backend/optimizer/path/tidpath.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/optimizer/path/tidpath.c b/src/backend/optimizer/path/tidpath.c index 7468fbf59d7..239e20c9635 100644 --- a/src/backend/optimizer/path/tidpath.c +++ b/src/backend/optimizer/path/tidpath.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/path/tidpath.c,v 1.22 2004/12/31 22:00:04 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/path/tidpath.c,v 1.23 2005/06/05 22:32:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -25,11 +25,13 @@ #include "parser/parse_coerce.h" #include "utils/lsyscache.h" + static List *TidqualFromRestrictinfo(Relids relids, List *restrictinfo); static bool isEvaluable(int varno, Node *node); static Node *TidequalClause(int varno, OpExpr *node); static List *TidqualFromExpr(int varno, Expr *expr); + static bool isEvaluable(int varno, Node *node) { @@ -228,7 +230,7 @@ TidqualFromRestrictinfo(Relids relids, List *restrictinfo) * Candidate paths are added to the rel's pathlist (using add_path). */ void -create_tidscan_paths(Query *root, RelOptInfo *rel) +create_tidscan_paths(PlannerInfo *root, RelOptInfo *rel) { List *tideval = TidqualFromRestrictinfo(rel->relids, rel->baserestrictinfo); |