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 | InitBufferPool (void) |
Size | BufferShmemSize (void) |
Variables | |
BufferDescPadded * | BufferDescriptors |
char * | BufferBlocks |
ConditionVariableMinimallyPadded * | BufferIOCVArray |
WritebackContext | BackendWritebackContext |
CkptSortItem * | CkptBufferIds |
Size BufferShmemSize | ( | void | ) |
Definition at line 160 of file buf_init.c.
References add_size(), mul_size(), NBuffers, PG_CACHE_LINE_SIZE, PG_IO_ALIGN_SIZE, and StrategyShmemSize().
Referenced by CalculateShmemSize().
void InitBufferPool | ( | 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_PGPROCNO, LWLockInitialize(), LWTRANCHE_BUFFER_CONTENT, NBuffers, pg_atomic_init_u32(), PG_IO_ALIGN_SIZE, ShmemInitStruct(), StrategyInitialize(), TYPEALIGN, and WritebackContextInit().
Referenced by CreateSharedMemoryAndSemaphores().
WritebackContext BackendWritebackContext |
Definition at line 24 of file buf_init.c.
Referenced by GetVictimBuffer(), and InitBufferPool().
char* BufferBlocks |
Definition at line 22 of file buf_init.c.
Referenced by BufferGetBlock(), and InitBufferPool().
BufferDescPadded* BufferDescriptors |
Definition at line 21 of file buf_init.c.
Referenced by GetBufferDescriptor(), and InitBufferPool().
ConditionVariableMinimallyPadded* BufferIOCVArray |
Definition at line 23 of file buf_init.c.
Referenced by BufferDescriptorGetIOCV(), and InitBufferPool().
CkptSortItem* CkptBufferIds |
Definition at line 25 of file buf_init.c.
Referenced by BufferSync(), and InitBufferPool().