From e0a2721f7c169b50617fed797d7336cd8f10bf77 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 19 Dec 2024 18:07:00 -0500 Subject: 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 --- src/backend/executor/nodeRecursiveunion.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/backend/executor/nodeRecursiveunion.c') diff --git a/src/backend/executor/nodeRecursiveunion.c b/src/backend/executor/nodeRecursiveunion.c index b577b72b50c..8bbec460173 100644 --- a/src/backend/executor/nodeRecursiveunion.c +++ b/src/backend/executor/nodeRecursiveunion.c @@ -39,23 +39,23 @@ build_hash_table(RecursiveUnionState *rustate) /* * If both child plans deliver the same fixed tuple slot type, we can tell - * BuildTupleHashTableExt to expect that slot type as input. Otherwise, + * BuildTupleHashTable to expect that slot type as input. Otherwise, * we'll pass NULL denoting that any slot type is possible. */ - rustate->hashtable = BuildTupleHashTableExt(&rustate->ps, - desc, - ExecGetCommonChildSlotOps(&rustate->ps), - node->numCols, - node->dupColIdx, - rustate->eqfuncoids, - rustate->hashfunctions, - node->dupCollations, - node->numGroups, - 0, - rustate->ps.state->es_query_cxt, - rustate->tableContext, - rustate->tempContext, - false); + rustate->hashtable = BuildTupleHashTable(&rustate->ps, + desc, + ExecGetCommonChildSlotOps(&rustate->ps), + node->numCols, + node->dupColIdx, + rustate->eqfuncoids, + rustate->hashfunctions, + node->dupCollations, + node->numGroups, + 0, + rustate->ps.state->es_query_cxt, + rustate->tableContext, + rustate->tempContext, + false); } -- cgit v1.2.3