Skip to content

Commit 3df163a

Browse files
committed
Add more documentation about shared memory costs.
1 parent bd8d441 commit 3df163a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@
4747
#
4848
# Shared Memory Size
4949
#
50-
#shared_buffers = 64 # min max_connections*2 or 16, 8KB each
51-
#max_locks_per_transaction = 64 # min 10
52-
#wal_buffers = 8 # min 4, typically 8KB each
50+
#shared_buffers = 64 # min 16, at least max_connections*2, 8KB each
51+
#max_locks_per_transaction = 64 # min 10, ~260*max_connections bytes each
52+
#wal_buffers = 8 # min 4, 8KB each
5353
# fsm = free space map
5454
#max_fsm_relations = 1000 # min 100, ~50 bytes each
5555
#max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each
56+
# note: increasing max_connections also costs about 500 bytes each,
57+
# in addition to costs from shared_buffers and max_locks_per_transaction.
58+
5659

5760
#
5861
# Non-shared Memory Sizes

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy