aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-02-07 15:58:30 -0500
committerRobert Haas <rhaas@postgresql.org>2017-02-07 16:01:44 -0500
commit565903af474e85cef28ff712d773f13b6701ded5 (patch)
tree14a39513fb712b2c9aebd8fd5ce94d911a06caf6 /src/backend
parent94708c0e8c32ad1c9c6ffbdb894fe158eda596e7 (diff)
downloadpostgresql-565903af474e85cef28ff712d773f13b6701ded5.tar.gz
postgresql-565903af474e85cef28ff712d773f13b6701ded5.zip
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.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/executor/execGrouping.c3
-rw-r--r--src/backend/nodes/tidbitmap.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/executor/execGrouping.c b/src/backend/executor/execGrouping.c
index 47c9656e1be..2d9ce938baf 100644
--- a/src/backend/executor/execGrouping.c
+++ b/src/backend/executor/execGrouping.c
@@ -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;
diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c
index 7b31948fd28..36102b5deab 100644
--- a/src/backend/nodes/tidbitmap.c
+++ b/src/backend/nodes/tidbitmap.c
@@ -244,7 +244,7 @@ tbm_create_pagetable(TIDBitmap *tbm)
Assert(tbm->status != TBM_HASH);
Assert(tbm->pagetable == NULL);
- tbm->pagetable = pagetable_create(tbm->mcxt, 128);
+ tbm->pagetable = pagetable_create(tbm->mcxt, 128, NULL, NULL, NULL);
/* If entry1 is valid, push it into the hashtable */
if (tbm->status == TBM_ONE_PAGE)