Discussion: https://postgr.es/m/CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com
for (transno = 0; transno < aggstate->numtrans; transno++)
{
AggStatePerTrans pertrans = &aggstate->pertrans[transno];
- int numInputs = pertrans->numInputs;
int argno;
int setno;
FunctionCallInfo trans_fcinfo = &pertrans->transfn_fcinfo;
argno++;
}
}
- Assert(numInputs == argno);
+ Assert(pertrans->numInputs == argno);
/*
* For a strict transfn, nothing happens when there's a NULL input; we