Skip to content

Instantly share code, notes, and snippets.

@seamusabshere
Created October 12, 2012 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seamusabshere/3882154 to your computer and use it in GitHub Desktop.
Save seamusabshere/3882154 to your computer and use it in GitHub Desktop.
postgresql90 config
# /opt/local/var/db/postgresql90/postgresql.conf
shared_buffers = 768MB # min 128kB
temp_buffers = 256MB # min 800kB
work_mem = 1GB # min 64kB
maintenance_work_mem = 256MB # min 1MB
max_stack_depth = 6MB # min 100kB
synchronous_commit = off # immediate fsync at commit
wal_buffers = 16MB # min 32kB
checkpoint_segments = 64 # in logfile segments, min 1, 16MB each
checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
effective_cache_size = 2GB
wal_writer_delay = 9999ms
# /etc/sysctl.conf
kern.sysv.shmmax=1073741824
kern.sysv.shmall=1073741824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment