2.2 Memory
Definition: Shared memory is memory that every PostgreSQL process can read and write. Local memory belongs to one backend only.
| Area | Kind | Default in 18 | What it holds |
|---|---|---|---|
shared_buffers |
Shared | 128 MB | Copies of data pages (8 kB each) read from disk |
wal_buffers |
Shared | 4 MB here (sized from shared_buffers) | Change records waiting to go to the WAL files |
transaction_buffers |
Shared | 256 kB here (sized from shared_buffers) | Commit status of recent transactions (the CLOG), cached from pg_xact |
work_mem |
Local, per operation | 4 MB | Space for one sort or hash in a query |
maintenance_work_mem |
Local | 64 MB | Space for VACUUM and CREATE INDEX |
temp_buffers |
Local | 8 MB | Pages of temporary tables that only this session can see |
You will see shared_buffers on your own server in 5.3, right after you install PostgreSQL.
Was this page helpful?
Thanks. Glad it helped.
Thanks for telling us. Email the instructor what was missing, or ask in class.