|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "storage/aio.h"#include "storage/buf_internals.h"#include "storage/bufmgr.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(), GetBufferDescriptor(), i, INVALID_PROC_NUMBER, LWLockInitialize(), NBuffers, pg_atomic_init_u32(), PG_IO_ALIGN_SIZE, pgaio_wref_clear(), ShmemInitStruct(), StrategyInitialize(), TYPEALIGN, and WritebackContextInit().
Referenced by CreateOrAttachShmemStructs().
| Size BufferManagerShmemSize | ( | void | ) |
Definition at line 153 of file buf_init.c.
References add_size(), mul_size(), NBuffers, PG_CACHE_LINE_SIZE, PG_IO_ALIGN_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().