Skip to content

Commit c1de1a3

Browse files
committed
Remove 'target' from GroupPathExtraData.
It's not needed. Jeevan Chalke Discussion: http://postgr.es/m/CAM2+6=XPWujjmj5zUaBTGDoB38CemwcPmjkRy0qOcsQj_V+2sQ@mail.gmail.com
1 parent 11cf92f commit c1de1a3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/backend/optimizer/plan/planner.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,7 +3744,6 @@ create_grouping_paths(PlannerInfo *root,
37443744
flags |= GROUPING_CAN_PARTIAL_AGG;
37453745

37463746
extra.flags = flags;
3747-
extra.target = target;
37483747
extra.target_parallel_safe = target_parallel_safe;
37493748
extra.havingQual = parse->havingQual;
37503749
extra.targetList = parse->targetList;
@@ -7029,7 +7028,7 @@ create_partitionwise_grouping_paths(PlannerInfo *root,
70297028
int cnt_parts;
70307029
List *grouped_live_children = NIL;
70317030
List *partially_grouped_live_children = NIL;
7032-
PathTarget *target = extra->target;
7031+
PathTarget *target = grouped_rel->reltarget;
70337032

70347033
Assert(patype != PARTITIONWISE_AGGREGATE_NONE);
70357034
Assert(patype != PARTITIONWISE_AGGREGATE_PARTIAL ||
@@ -7062,7 +7061,6 @@ create_partitionwise_grouping_paths(PlannerInfo *root,
70627061
adjust_appendrel_attrs(root,
70637062
(Node *) target->exprs,
70647063
nappinfos, appinfos);
7065-
child_extra.target = child_target;
70667064

70677065
/* Translate havingQual and targetList. */
70687066
child_extra.havingQual = (Node *)

src/include/nodes/relation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,6 @@ typedef enum
23402340
* have been initialized.
23412341
* agg_partial_costs gives partial aggregation costs.
23422342
* agg_final_costs gives finalization costs.
2343-
* target is the PathTarget to be used while creating paths.
23442343
* target_parallel_safe is true if target is parallel safe.
23452344
* havingQual gives list of quals to be applied after aggregation.
23462345
* targetList gives list of columns to be projected.
@@ -2355,7 +2354,6 @@ typedef struct
23552354
AggClauseCosts agg_final_costs;
23562355

23572356
/* Data which may differ across partitions. */
2358-
PathTarget *target;
23592357
bool target_parallel_safe;
23602358
Node *havingQual;
23612359
List *targetList;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy