1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Allow the element allocator for a simplehash to be specified.

This is infrastructure for a pending patch to allow parallel bitmap
heap scans.

Dilip Kumar, reviewed (in earlier versions) by Andres Freund and
(more recently) by me.  Some further renaming by me, also.
This commit is contained in:
Robert Haas
2017-02-07 15:58:30 -05:00
parent 94708c0e8c
commit 565903af47
3 changed files with 60 additions and 14 deletions

View File

@ -330,7 +330,8 @@ BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
else
hashtable->hash_iv = 0;
hashtable->hashtab = tuplehash_create(tablecxt, nbuckets);
hashtable->hashtab =
tuplehash_create(tablecxt, nbuckets, NULL, NULL, NULL);
hashtable->hashtab->private_data = hashtable;
return hashtable;