diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-06 00:20:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-06 00:20:33 +0000 |
commit | 2cf57c8f8d060711c1ad7e1dd6cc1115a2839b47 (patch) | |
tree | b3b2a9616d425072d26cfc57efcbe676c56b399e /src/backend/optimizer/prep/prepunion.c | |
parent | 94a3c60324465f98850b60f548c1ea481ab4e52f (diff) |
Implement feature of new FE/BE protocol whereby RowDescription identifies
the column by table OID and column number, if it's a simple column
reference. Along the way, get rid of reskey/reskeyop fields in Resdoms.
Turns out that representation was not convenient for either the planner
or the executor; we can make the planner deliver exactly what the
executor wants with no more effort.
initdb forced due to change in stored rule representation.
Diffstat (limited to 'src/backend/optimizer/prep/prepunion.c')
-rw-r--r-- | src/backend/optimizer/prep/prepunion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/prep/prepunion.c b/src/backend/optimizer/prep/prepunion.c index d2b91c2ec6d..86a52645fe6 100644 --- a/src/backend/optimizer/prep/prepunion.c +++ b/src/backend/optimizer/prep/prepunion.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.94 2003/04/29 22:13:09 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.95 2003/05/06 00:20:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -238,7 +238,7 @@ generate_union_plan(SetOperationStmt *op, Query *parse, { List *sortList; - tlist = new_unsorted_tlist(tlist); + tlist = copyObject(tlist); sortList = addAllTargetsToSortList(NIL, tlist); plan = (Plan *) make_sort_from_sortclauses(parse, tlist, plan, sortList); @@ -292,7 +292,7 @@ generate_nonunion_plan(SetOperationStmt *op, Query *parse, * Sort the child results, then add a SetOp plan node to generate the * correct output. */ - tlist = new_unsorted_tlist(tlist); + tlist = copyObject(tlist); sortList = addAllTargetsToSortList(NIL, tlist); plan = (Plan *) make_sort_from_sortclauses(parse, tlist, plan, sortList); switch (op->op) |