160 elog(
ERROR,
"shared buffer hash table corrupted");
void BufTableDelete(BufferTag *tagPtr, uint32 hashcode)
static HTAB * SharedBufHash
int BufTableLookup(BufferTag *tagPtr, uint32 hashcode)
void InitBufTable(int size)
Size BufTableShmemSize(int size)
uint32 BufTableHashCode(BufferTag *tagPtr)
int BufTableInsert(BufferTag *tagPtr, uint32 hashcode, int buf_id)
#define Assert(condition)
Size hash_estimate_size(long num_entries, Size entrysize)
uint32 get_hash_value(HTAB *hashp, const void *keyPtr)
void * hash_search_with_hash_value(HTAB *hashp, const void *keyPtr, uint32 hashvalue, HASHACTION action, bool *foundPtr)
#define NUM_BUFFER_PARTITIONS
HTAB * ShmemInitHash(const char *name, long init_size, long max_size, HASHCTL *infoP, int hash_flags)
static pg_noinline void Size size