37 typedef void *(*HashCopyFunc) (
void *
dest,
const void *src,
Size keysize);
44 typedef void *(*HashAllocFunc) (
Size request);
92 #define HASH_PARTITION 0x0001
93 #define HASH_SEGMENT 0x0002
94 #define HASH_DIRSIZE 0x0004
95 #define HASH_ELEM 0x0008
96 #define HASH_STRINGS 0x0010
97 #define HASH_BLOBS 0x0020
98 #define HASH_FUNCTION 0x0040
99 #define HASH_COMPARE 0x0080
100 #define HASH_KEYCOPY 0x0100
101 #define HASH_ALLOC 0x0200
102 #define HASH_CONTEXT 0x0400
103 #define HASH_SHARED_MEM 0x0800
104 #define HASH_ATTACH 0x1000
105 #define HASH_FIXED_SIZE 0x2000
108 #define NO_MAX_DSIZE (-1)
133 const HASHCTL *info,
int flags);
143 const void *newKeyPtr);
void hash_seq_init_with_hash_value(HASH_SEQ_STATUS *status, HTAB *hashp, uint32 hashvalue)
struct HASHELEMENT HASHELEMENT
void AtEOXact_HashTables(bool isCommit)
int(* HashCompareFunc)(const void *key1, const void *key2, Size keysize)
Size hash_get_shared_size(HASHCTL *info, int flags)
void AtEOSubXact_HashTables(bool isCommit, int nestDepth)
void hash_destroy(HTAB *hashp)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
uint32(* HashValueFunc)(const void *key, Size keysize)
void hash_seq_term(HASH_SEQ_STATUS *status)
void *(* HashAllocFunc)(Size request)
HTAB * hash_create(const char *tabname, long nelem, const HASHCTL *info, int flags)
long hash_get_num_entries(HTAB *hashp)
long hash_select_dirsize(long num_entries)
Size hash_estimate_size(long num_entries, Size entrysize)
void hash_stats(const char *where, HTAB *hashp)
void hash_freeze(HTAB *hashp)
bool hash_update_hash_key(HTAB *hashp, void *existingEntry, const void *newKeyPtr)
uint32 get_hash_value(HTAB *hashp, const void *keyPtr)
void *(* HashCopyFunc)(void *dest, const void *src, Size keysize)
void * hash_search_with_hash_value(HTAB *hashp, const void *keyPtr, uint32 hashvalue, HASHACTION action, bool *foundPtr)
void * hash_seq_search(HASH_SEQ_STATUS *status)
void hash_seq_init(HASH_SEQ_STATUS *status, HTAB *hashp)
struct HASHELEMENT * link