diff options
author | Robert Haas <rhaas@postgresql.org> | 2020-02-24 17:22:45 +0530 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2020-02-24 17:22:45 +0530 |
commit | 9341c783cc42ffae5860c86bdc713bd47d734ffd (patch) | |
tree | 5bf0e9fd3a04a442d222a91919ba1df48dd90790 /src/include/utils/hashutils.h | |
parent | 07b95c3d8334f737d4717c91967729f7721e785c (diff) |
Put all the prototypes for hashfn.c into the same header file.
Previously, some of the prototypes for functions in hashfn.c were
in utils/hashutils.h and others were in utils/hsearch.h, but that
is confusing and has no particular benefit.
Patch by me, reviewed by Suraj Kharage and Mark Dilger.
Discussion: http://postgr.es/m/CA+TgmoaRiG4TXND8QuM6JXFRkM_1wL2ZNhzaUKsuec9-4yrkgw@mail.gmail.com
Diffstat (limited to 'src/include/utils/hashutils.h')
-rw-r--r-- | src/include/utils/hashutils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/utils/hashutils.h b/src/include/utils/hashutils.h index 9a2e13f536e..f2ae55194ae 100644 --- a/src/include/utils/hashutils.h +++ b/src/include/utils/hashutils.h @@ -26,6 +26,12 @@ extern Datum hash_any_extended(const unsigned char *k, extern Datum hash_uint32(uint32 k); extern Datum hash_uint32_extended(uint32 k, uint64 seed); +extern uint32 string_hash(const void *key, Size keysize); +extern uint32 tag_hash(const void *key, Size keysize); +extern uint32 uint32_hash(const void *key, Size keysize); + +#define oid_hash uint32_hash /* Remove me eventually */ + /* * Combine two 32-bit hash values, resulting in another hash value, with * decent bit mixing. |