PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | BufferLookupEnt |
Functions | |
Size | BufTableShmemSize (int size) |
void | InitBufTable (int size) |
uint32 | BufTableHashCode (BufferTag *tagPtr) |
int | BufTableLookup (BufferTag *tagPtr, uint32 hashcode) |
int | BufTableInsert (BufferTag *tagPtr, uint32 hashcode, int buf_id) |
void | BufTableDelete (BufferTag *tagPtr, uint32 hashcode) |
Variables | |
static HTAB * | SharedBufHash |
Definition at line 148 of file buf_table.c.
References elog, ERROR, HASH_REMOVE, hash_search_with_hash_value(), and SharedBufHash.
Referenced by InvalidateBuffer(), and InvalidateVictimBuffer().
Definition at line 78 of file buf_table.c.
References get_hash_value(), and SharedBufHash.
Referenced by BufferAlloc(), ExtendBufferedRelShared(), FindAndDropRelationBuffers(), InvalidateBuffer(), InvalidateVictimBuffer(), and PrefetchSharedBuffer().
Definition at line 118 of file buf_table.c.
References Assert, buftag::blockNum, HASH_ENTER, hash_search_with_hash_value(), BufferLookupEnt::id, P_NEW, and SharedBufHash.
Referenced by BufferAlloc(), and ExtendBufferedRelShared().
Definition at line 90 of file buf_table.c.
References HASH_FIND, hash_search_with_hash_value(), BufferLookupEnt::id, and SharedBufHash.
Referenced by BufferAlloc(), FindAndDropRelationBuffers(), and PrefetchSharedBuffer().
Size BufTableShmemSize | ( | int | size | ) |
Definition at line 41 of file buf_table.c.
References hash_estimate_size(), and size.
Referenced by StrategyShmemSize().
void InitBufTable | ( | int | size | ) |
Definition at line 51 of file buf_table.c.
References HASHCTL::entrysize, HASH_BLOBS, HASH_ELEM, HASH_PARTITION, HASHCTL::keysize, NUM_BUFFER_PARTITIONS, HASHCTL::num_partitions, SharedBufHash, ShmemInitHash(), and size.
Referenced by StrategyInitialize().
|
static |
Definition at line 33 of file buf_table.c.
Referenced by BufTableDelete(), BufTableHashCode(), BufTableInsert(), BufTableLookup(), and InitBufTable().