mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Agg/Aggreg cleanup and datetime.sql patch.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.37 1999/01/25 12:01:04 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.38 1999/01/25 18:02:15 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -249,7 +249,7 @@ union_planner(Query *parse)
|
||||
{
|
||||
int old_length=0, new_length=0;
|
||||
|
||||
/* Create the AGG node but use 'tlist' not 'new_tlist' as target list because we
|
||||
/* Create the Agg node but use 'tlist' not 'new_tlist' as target list because we
|
||||
* don't want the additional attributes (only used for the havingQual, see above)
|
||||
* to show up in the result */
|
||||
result_plan = (Plan *) make_agg(tlist, result_plan);
|
||||
@@ -259,7 +259,7 @@ union_planner(Query *parse)
|
||||
* the result tuple of the subplans.
|
||||
*/
|
||||
((Agg *) result_plan)->aggs =
|
||||
set_agg_tlist_references((Agg *) result_plan);
|
||||
get_agg_tlist_references((Agg *) result_plan);
|
||||
|
||||
|
||||
/***S*H***/
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.32 1999/01/24 00:28:20 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.33 1999/01/25 18:02:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -700,7 +700,7 @@ OperandIsInner(Node *opnd, int inner_relid)
|
||||
|
||||
/*---------------------------------------------------------
|
||||
*
|
||||
* set_agg_tlist_references -
|
||||
* get_agg_tlist_references -
|
||||
* changes the target list of an Agg node so that it points to
|
||||
* the tuples returned by its left tree subplan.
|
||||
*
|
||||
@@ -708,7 +708,7 @@ OperandIsInner(Node *opnd, int inner_relid)
|
||||
*
|
||||
*/
|
||||
List *
|
||||
set_agg_tlist_references(Agg *aggNode)
|
||||
get_agg_tlist_references(Agg *aggNode)
|
||||
{
|
||||
List *aggTargetList;
|
||||
List *subplanTargetList;
|
||||
|
||||
Reference in New Issue
Block a user