]> granicus.if.org Git - postgresql/blobdiff - src/backend/storage/buffer/bufmgr.c
Improve hash_create's API for selecting simple-binary-key hash functions.
[postgresql] / src / backend / storage / buffer / bufmgr.c
index 9b62aecd9178fc37d99dc735d6304d308f15aa9f..1b99e216f125b82ad96c1409a72373fc0c7bd0f6 100644 (file)
@@ -2063,10 +2063,9 @@ InitBufferPoolAccess(void)
        MemSet(&hash_ctl, 0, sizeof(hash_ctl));
        hash_ctl.keysize = sizeof(int32);
        hash_ctl.entrysize = sizeof(PrivateRefCountArray);
-       hash_ctl.hash = oid_hash; /* a bit more efficient than tag_hash */
 
        PrivateRefCountHash = hash_create("PrivateRefCount", 100, &hash_ctl,
-                                                                         HASH_ELEM | HASH_FUNCTION);
+                                                                         HASH_ELEM | HASH_BLOBS);
 }
 
 /*