Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

postgresql.conf



As requested in the blog entry, http://pugs.postgresql.org/node/378, below
are the performance related changes I've made from the default
postgresql.conf file used on a general database server at the City of
Garden Grove, running PG 8.3.1:

  shared_buffers = 128MB # from 32MB
  work_mem = 32MB # from 1MB
  max_stack_depth = 8MB # from 2MB

Hopefully, these are sane changes based on our workload. We've also made
some changes to logging..

  log_destination = 'syslog' # from stderr
  syslog_facility = 'LOCAL6'
  syslog_ident = 'postgres'
  log_min_messages = error
  log_min_duration_statement = 200
  log_line_prefix = '<%u %d %h>'

Looking at this reminds me that I should setup logging of all changes by
using ..
  log_statement = 'mod'

Logging all changes (update,insert,delete,alter) has saved by bacon a few
times. However, if there are a large number "mods" the size of the log
files can become an issue.

-Noel




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group