PostgreSQL Buffer Manager (cont)
Buffer pool consists of:
BufferDescriptors
- shared fixed array (size
NBuffers ) of BufferDesc
BufferBlocks
- shared fixed array (size
NBuffers ) of 8KB frames
Buffer = index values in above arrays
- indexes: global buffers
1..NBuffers ; local buffers negative
Size of buffer pool is set in postgresql.conf, e.g.
|