I happened to notice $subject. It happens when we build eqfunctions foreach grouping set. /* for each grouping set */ for (int k = 0; k < phasedata->numsets; k++) { int length = phasedata->gset_lengths[k]; if (phasedata->eqfunctions[length - 1] != NULL) continue; phasedata->eqfunctions[length - 1] = execTuplesMatchPrepare(scanDesc, length, aggnode->grpColIdx, aggnode->grpOperators, aggnode->grpCollations, (PlanState *) aggstate); }If it is an empty grouping set, its length will be zero, and accessingphasedata->eqfunctions[length - 1] is not right.I think we can just skip building the eqfunctions for empty groupingset.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных