diff options
| author | Tom Lane | 2003-05-06 00:20:33 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-05-06 00:20:33 +0000 |
| commit | 2cf57c8f8d060711c1ad7e1dd6cc1115a2839b47 (patch) | |
| tree | b3b2a9616d425072d26cfc57efcbe676c56b399e /src/include/optimizer | |
| 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/include/optimizer')
| -rw-r--r-- | src/include/optimizer/planmain.h | 6 | ||||
| -rw-r--r-- | src/include/optimizer/tlist.h | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/include/optimizer/planmain.h b/src/include/optimizer/planmain.h index bd1d757e6a7..35a85e311ab 100644 --- a/src/include/optimizer/planmain.h +++ b/src/include/optimizer/planmain.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: planmain.h,v 1.69 2003/03/10 03:53:52 tgl Exp $ + * $Id: planmain.h,v 1.70 2003/05/06 00:20:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -30,10 +30,10 @@ extern Plan *create_plan(Query *root, Path *best_path); extern SubqueryScan *make_subqueryscan(List *qptlist, List *qpqual, Index scanrelid, Plan *subplan); extern Append *make_append(List *appendplans, bool isTarget, List *tlist); -extern Sort *make_sort(Query *root, List *tlist, - Plan *lefttree, int keycount); extern Sort *make_sort_from_sortclauses(Query *root, List *tlist, Plan *lefttree, List *sortcls); +extern Sort *make_sort_from_groupcols(Query *root, List *groupcls, + AttrNumber *grpColIdx, Plan *lefttree); extern Agg *make_agg(Query *root, List *tlist, List *qual, AggStrategy aggstrategy, int numGroupCols, AttrNumber *grpColIdx, diff --git a/src/include/optimizer/tlist.h b/src/include/optimizer/tlist.h index bce5db6c55c..e2afc3ac821 100644 --- a/src/include/optimizer/tlist.h +++ b/src/include/optimizer/tlist.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: tlist.h,v 1.34 2003/02/15 20:12:41 tgl Exp $ + * $Id: tlist.h,v 1.35 2003/05/06 00:20:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,6 @@ extern Resdom *tlist_member(Node *node, List *targetlist); extern void add_var_to_tlist(RelOptInfo *rel, Var *var); extern TargetEntry *create_tl_element(Var *var, int resdomno); -extern List *new_unsorted_tlist(List *targetlist); extern List *flatten_tlist(List *tlist); extern List *add_to_flat_tlist(List *tlist, List *vars); |
