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/nodes/copyfuncs.c | |
| parent | 22dbd540478517ff6c55381ae7ce07a3a2e64474 (diff) | |
| download | postgresql-9ab4d98168407c3436d3f0e02d32720b0d9075a0.tar.gz | |
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/nodes/copyfuncs.c')
| -rw-r--r-- | src/backend/nodes/copyfuncs.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 2d5dd7b2b5..2f7642276c 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.304 2005/04/28 21:47:12 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.305 2005/06/05 22:32:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1615,18 +1615,6 @@ _copyQuery(Query *from) COPY_NODE_FIELD(limitCount); COPY_NODE_FIELD(setOperations); COPY_NODE_FIELD(resultRelations); - COPY_NODE_FIELD(in_info_list); - COPY_SCALAR_FIELD(hasJoinRTEs); - COPY_SCALAR_FIELD(hasHavingQual); - - /* - * We do not copy the other planner internal fields: base_rel_list, - * other_rel_list, join_rel_list, equi_key_list, query_pathkeys. That - * would get us into copying RelOptInfo/Path trees, which we don't - * want to do. It is necessary to copy in_info_list, hasJoinRTEs, - * and hasHavingQual for the benefit of inheritance_planner(), which - * may try to copy a Query in which these are already set. - */ return newnode; } |
