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) 131 const HASHCTL *info,
int flags);
141 const void *newKeyPtr);
int(* HashCompareFunc)(const void *key1, const void *key2, Size keysize)
long hash_select_dirsize(long num_entries)
uint32(* HashValueFunc)(const void *key, Size keysize)
struct HASHELEMENT HASHELEMENT
void hash_stats(const char *where, HTAB *hashp)
void hash_freeze(HTAB *hashp)
void * hash_search_with_hash_value(HTAB *hashp, const void *keyPtr, uint32 hashvalue, HASHACTION action, bool *foundPtr)
HTAB * hash_create(const char *tabname, long nelem, const HASHCTL *info, int flags)
Size hash_get_shared_size(HASHCTL *info, int flags)
uint32 get_hash_value(HTAB *hashp, const void *keyPtr)
void hash_seq_init(HASH_SEQ_STATUS *status, HTAB *hashp)
void hash_seq_term(HASH_SEQ_STATUS *status)
Size hash_estimate_size(long num_entries, Size entrysize)
void AtEOXact_HashTables(bool isCommit)
void *(* HashCopyFunc)(void *dest, const void *src, Size keysize)
void *(* HashAllocFunc)(Size request)
bool hash_update_hash_key(HTAB *hashp, void *existingEntry, const void *newKeyPtr)
struct HASHELEMENT * link
void AtEOSubXact_HashTables(bool isCommit, int nestDepth)
void * hash_seq_search(HASH_SEQ_STATUS *status)
void * hash_search(HTAB *hashp, const void *keyPtr, HASHACTION action, bool *foundPtr)
void hash_destroy(HTAB *hashp)
static void static void status(const char *fmt,...) pg_attribute_printf(1
long hash_get_num_entries(HTAB *hashp)