mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Remove no-longer-needed fields of Hash plan nodes.
skewColType/skewColTypmod are no longer used in the wake of commit
9aab83fc5
, and seem unlikely to be wanted in future, so let's drop 'em.
Discussion: https://postgr.es/m/16364.1494520862@sss.pgh.pa.us
This commit is contained in:
@ -224,9 +224,7 @@ static HashJoin *make_hashjoin(List *tlist,
|
||||
static Hash *make_hash(Plan *lefttree,
|
||||
Oid skewTable,
|
||||
AttrNumber skewColumn,
|
||||
bool skewInherit,
|
||||
Oid skewColType,
|
||||
int32 skewColTypmod);
|
||||
bool skewInherit);
|
||||
static MergeJoin *make_mergejoin(List *tlist,
|
||||
List *joinclauses, List *otherclauses,
|
||||
List *mergeclauses,
|
||||
@ -4065,8 +4063,6 @@ create_hashjoin_plan(PlannerInfo *root,
|
||||
Oid skewTable = InvalidOid;
|
||||
AttrNumber skewColumn = InvalidAttrNumber;
|
||||
bool skewInherit = false;
|
||||
Oid skewColType = InvalidOid;
|
||||
int32 skewColTypmod = -1;
|
||||
|
||||
/*
|
||||
* HashJoin can project, so we don't have to demand exact tlists from the
|
||||
@ -4153,8 +4149,6 @@ create_hashjoin_plan(PlannerInfo *root,
|
||||
skewTable = rte->relid;
|
||||
skewColumn = var->varattno;
|
||||
skewInherit = rte->inh;
|
||||
skewColType = var->vartype;
|
||||
skewColTypmod = var->vartypmod;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4165,9 +4159,7 @@ create_hashjoin_plan(PlannerInfo *root,
|
||||
hash_plan = make_hash(inner_plan,
|
||||
skewTable,
|
||||
skewColumn,
|
||||
skewInherit,
|
||||
skewColType,
|
||||
skewColTypmod);
|
||||
skewInherit);
|
||||
|
||||
/*
|
||||
* Set Hash node's startup & total costs equal to total cost of input
|
||||
@ -5427,9 +5419,7 @@ static Hash *
|
||||
make_hash(Plan *lefttree,
|
||||
Oid skewTable,
|
||||
AttrNumber skewColumn,
|
||||
bool skewInherit,
|
||||
Oid skewColType,
|
||||
int32 skewColTypmod)
|
||||
bool skewInherit)
|
||||
{
|
||||
Hash *node = makeNode(Hash);
|
||||
Plan *plan = &node->plan;
|
||||
@ -5442,8 +5432,6 @@ make_hash(Plan *lefttree,
|
||||
node->skewTable = skewTable;
|
||||
node->skewColumn = skewColumn;
|
||||
node->skewInherit = skewInherit;
|
||||
node->skewColType = skewColType;
|
||||
node->skewColTypmod = skewColTypmod;
|
||||
|
||||
return node;
|
||||
}
|
||||
|
Reference in New Issue
Block a user