mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
The attached patch changes units of the some default values in
postgresql.conf. - shared_buffers = 32000kB => 32MB - temp_buffers = 8000kB => 8MB - wal_buffers = 8 => 64kB The code of initdb was a bit modified to write MB-unit values. Values greater than 8000kB are rounded out to MB. GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS, but uses XLOG_BLCKSZ instead of BLCKSZ. Also, I cleaned up the test of GUC_UNIT_* flags in preparation to add more unit flags in less bits. ITAGAKI Takahiro
This commit is contained in:
@ -98,9 +98,9 @@
|
||||
|
||||
# - Memory -
|
||||
|
||||
#shared_buffers = 32000kB # min 128kB or max_connections*16kB
|
||||
#shared_buffers = 32MB # min 128kB or max_connections*16kB
|
||||
# (change requires restart)
|
||||
#temp_buffers = 8000kB # min 800kB
|
||||
#temp_buffers = 8MB # min 800kB
|
||||
#max_prepared_transactions = 5 # can be 0 or more
|
||||
# (change requires restart)
|
||||
# Note: increasing max_prepared_transactions costs ~600 bytes of shared memory
|
||||
@ -111,7 +111,7 @@
|
||||
|
||||
# - Free Space Map -
|
||||
|
||||
#max_fsm_pages = 1600000 # min max_fsm_relations*16, 6 bytes each
|
||||
#max_fsm_pages = 1638400 # min max_fsm_relations*16, 6 bytes each
|
||||
# (change requires restart)
|
||||
#max_fsm_relations = 1000 # min 100, ~70 bytes each
|
||||
# (change requires restart)
|
||||
@ -154,7 +154,7 @@
|
||||
# fsync_writethrough
|
||||
# open_sync
|
||||
#full_page_writes = on # recover from partial page writes
|
||||
#wal_buffers = 8 # min 4, 8kB each
|
||||
#wal_buffers = 64kB # min 4, 8kB each
|
||||
# (change requires restart)
|
||||
#commit_delay = 0 # range 0-100000, in microseconds
|
||||
#commit_siblings = 5 # range 1-1000
|
||||
|
Reference in New Issue
Block a user