From 9ab4d98168407c3436d3f0e02d32720b0d9075a0 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 5 Jun 2005 22:32:58 +0000 Subject: 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. --- src/backend/optimizer/util/restrictinfo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/backend/optimizer/util/restrictinfo.c') diff --git a/src/backend/optimizer/util/restrictinfo.c b/src/backend/optimizer/util/restrictinfo.c index e19a308cdf..460ccc9546 100644 --- a/src/backend/optimizer/util/restrictinfo.c +++ b/src/backend/optimizer/util/restrictinfo.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/util/restrictinfo.c,v 1.35 2005/04/25 02:14:47 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/util/restrictinfo.c,v 1.36 2005/06/05 22:32:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -28,7 +28,7 @@ static RestrictInfo *make_restrictinfo_internal(Expr *clause, static Expr *make_sub_restrictinfos(Expr *clause, bool is_pushed_down, bool valid_everywhere); -static RestrictInfo *join_clause_is_redundant(Query *root, +static RestrictInfo *join_clause_is_redundant(PlannerInfo *root, RestrictInfo *rinfo, List *reference_list, bool isouterjoin); @@ -354,7 +354,7 @@ get_actual_join_clauses(List *restrictinfo_list, * as were in the input. */ List * -remove_redundant_join_clauses(Query *root, List *restrictinfo_list, +remove_redundant_join_clauses(PlannerInfo *root, List *restrictinfo_list, bool isouterjoin) { List *result = NIL; @@ -415,7 +415,7 @@ remove_redundant_join_clauses(Query *root, List *restrictinfo_list, * for local redundancies, so we don't check again. */ List * -select_nonredundant_join_clauses(Query *root, +select_nonredundant_join_clauses(PlannerInfo *root, List *restrictinfo_list, List *reference_list, bool isouterjoin) @@ -467,7 +467,7 @@ select_nonredundant_join_clauses(Query *root, * joined rows after addition of null fill rows, and the other doesn't. */ static RestrictInfo * -join_clause_is_redundant(Query *root, +join_clause_is_redundant(PlannerInfo *root, RestrictInfo *rinfo, List *reference_list, bool isouterjoin) -- cgit v1.2.1