mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Revise the way the element allocator for a simplehash is specified.
This method is more elegant and more efficient. Per a suggestion from Andres Freund, who also briefly reviewed the patch.
This commit is contained in:
@ -330,8 +330,7 @@ BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
|
||||
else
|
||||
hashtable->hash_iv = 0;
|
||||
|
||||
hashtable->hashtab =
|
||||
tuplehash_create(tablecxt, nbuckets, NULL, NULL, NULL);
|
||||
hashtable->hashtab = tuplehash_create(tablecxt, nbuckets);
|
||||
hashtable->hashtab->private_data = hashtable;
|
||||
|
||||
return hashtable;
|
||||
|
Reference in New Issue
Block a user