Commit 3e0b05a7 authored by Tom Lane's avatar Tom Lane
parent 793beab3
...@@ -2861,7 +2861,6 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase, ...@@ -2861,7 +2861,6 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase,
for (transno = 0; transno < aggstate->numtrans; transno++) for (transno = 0; transno < aggstate->numtrans; transno++)
{ {
AggStatePerTrans pertrans = &aggstate->pertrans[transno]; AggStatePerTrans pertrans = &aggstate->pertrans[transno];
int numInputs = pertrans->numInputs;
int argno; int argno;
int setno; int setno;
FunctionCallInfo trans_fcinfo = &pertrans->transfn_fcinfo; FunctionCallInfo trans_fcinfo = &pertrans->transfn_fcinfo;
...@@ -3016,7 +3015,7 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase, ...@@ -3016,7 +3015,7 @@ ExecBuildAggTrans(AggState *aggstate, AggStatePerPhase phase,
argno++; argno++;
} }
} }
Assert(numInputs == argno); Assert(pertrans->numInputs == argno);
/* /*
* For a strict transfn, nothing happens when there's a NULL input; we * For a strict transfn, nothing happens when there's a NULL input; we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment