PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "storage/buf_internals.h"
#include "storage/bufmgr.h"
#include "storage/proc.h"
Go to the source code of this file.
Functions | |
void | BufferManagerShmemInit (void) |
Size | BufferManagerShmemSize (void) |
Variables | |
BufferDescPadded * | BufferDescriptors |
char * | BufferBlocks |
ConditionVariableMinimallyPadded * | BufferIOCVArray |
WritebackContext | BackendWritebackContext |
CkptSortItem * | CkptBufferIds |
void BufferManagerShmemInit | ( | void | ) |
Definition at line 68 of file buf_init.c.
References Assert, backend_flush_after, BackendWritebackContext, buf, BufferBlocks, BufferDescriptorGetContentLock(), BufferDescriptorGetIOCV(), BufferDescriptors, BufferIOCVArray, CkptBufferIds, ClearBufferTag(), ConditionVariableInit(), BufferDesc::freeNext, FREENEXT_END_OF_LIST, GetBufferDescriptor(), i, INVALID_PROC_NUMBER, LWLockInitialize(), LWTRANCHE_BUFFER_CONTENT, NBuffers, pg_atomic_init_u32(), PG_IO_ALIGN_SIZE, ShmemInitStruct(), StrategyInitialize(), TYPEALIGN, and WritebackContextInit().
Referenced by CreateOrAttachShmemStructs().
Size BufferManagerShmemSize | ( | void | ) |
Definition at line 160 of file buf_init.c.
References add_size(), mul_size(), NBuffers, PG_CACHE_LINE_SIZE, PG_IO_ALIGN_SIZE, size, and StrategyShmemSize().
Referenced by CalculateShmemSize().
WritebackContext BackendWritebackContext |
Definition at line 24 of file buf_init.c.
Referenced by BufferManagerShmemInit(), and GetVictimBuffer().
char* BufferBlocks |
Definition at line 22 of file buf_init.c.
Referenced by BufferGetBlock(), and BufferManagerShmemInit().
BufferDescPadded* BufferDescriptors |
Definition at line 21 of file buf_init.c.
Referenced by BufferManagerShmemInit(), and GetBufferDescriptor().
ConditionVariableMinimallyPadded* BufferIOCVArray |
Definition at line 23 of file buf_init.c.
Referenced by BufferDescriptorGetIOCV(), and BufferManagerShmemInit().
CkptSortItem* CkptBufferIds |
Definition at line 25 of file buf_init.c.
Referenced by BufferManagerShmemInit(), and BufferSync().