mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Get rid of old version of BuildTupleHashTable().
It was reasonable to preserve the old API of BuildTupleHashTable() in the back branches, but in HEAD we should actively discourage use of that version. There are no remaining callers in core, so just get rid of it. Then rename BuildTupleHashTableExt() back to BuildTupleHashTable(). While at it, fix up the miserably-poorly-maintained header comment for BuildTupleHashTable[Ext]. It looks like more than one patch in this area has had the opinion that updating comments is beneath them. Discussion: https://postgr.es/m/538343.1734646986@sss.pgh.pa.us
This commit is contained in:
@ -1518,20 +1518,20 @@ build_hash_table(AggState *aggstate, int setno, long nbuckets)
|
||||
*/
|
||||
additionalsize = aggstate->numtrans * sizeof(AggStatePerGroupData);
|
||||
|
||||
perhash->hashtable = BuildTupleHashTableExt(&aggstate->ss.ps,
|
||||
perhash->hashslot->tts_tupleDescriptor,
|
||||
perhash->hashslot->tts_ops,
|
||||
perhash->numCols,
|
||||
perhash->hashGrpColIdxHash,
|
||||
perhash->eqfuncoids,
|
||||
perhash->hashfunctions,
|
||||
perhash->aggnode->grpCollations,
|
||||
nbuckets,
|
||||
additionalsize,
|
||||
metacxt,
|
||||
hashcxt,
|
||||
tmpcxt,
|
||||
DO_AGGSPLIT_SKIPFINAL(aggstate->aggsplit));
|
||||
perhash->hashtable = BuildTupleHashTable(&aggstate->ss.ps,
|
||||
perhash->hashslot->tts_tupleDescriptor,
|
||||
perhash->hashslot->tts_ops,
|
||||
perhash->numCols,
|
||||
perhash->hashGrpColIdxHash,
|
||||
perhash->eqfuncoids,
|
||||
perhash->hashfunctions,
|
||||
perhash->aggnode->grpCollations,
|
||||
nbuckets,
|
||||
additionalsize,
|
||||
metacxt,
|
||||
hashcxt,
|
||||
tmpcxt,
|
||||
DO_AGGSPLIT_SKIPFINAL(aggstate->aggsplit));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user