Skip to content

Commit

Permalink
increasing the size of the pg_stat output, and enabling autoexplain. …
Browse files Browse the repository at this point in the history
…both should not be enabled by default, but for now it will do.
  • Loading branch information
truthtrap committed Jun 13, 2012
1 parent 36ad414 commit 6b2990d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions etc/postgresql/9.1/main/postgresql.conf
Expand Up @@ -51,8 +51,8 @@ wal_receiver_status_interval = 10s # send replies at least this often
hot_standby_feedback = on # send info from standby to prevent
# query conflicts


log_line_prefix = '%t ' # special values:
log_line_prefix = '%t [%p]: [%l-1] host=%h,user=%u,db=%d,tx=%x,vtx=%v '
# special values:
# %a = application name
# %u = user name
# %d = database name
Expand All @@ -75,7 +75,7 @@ log_line_prefix = '%t ' # special values:

autovacuum = on # Enable autovacuum subprocess? 'on'
# requires track_counts to also be on.
log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
log_autovacuum_min_duration = 100 # -1 disables, 0 logs all actions and
# their durations, > 0 logs only
# actions running at least this number
# of milliseconds.
Expand Down Expand Up @@ -107,9 +107,13 @@ lc_time = 'en_GB.UTF-8'
default_text_search_config = 'pg_catalog.english'

# pgmemcached (jurg)
shared_preload_libraries = 'pgmemcache,pg_stat_statements'
custom_variable_classes = 'pgmemcache,pg_stat_statements'
pgmemcache.default_servers = 'objects.ldyegh.0001.euw1.cache.amazonaws.com:11211'
shared_preload_libraries = 'pgmemcache,pg_stat_statements,auto_explain'
custom_variable_classes = 'pgmemcache,pg_stat_statements,auto_explain'
pgmemcache.default_servers = 'django-objects.ldyegh.0001.euw1.cache.amazonaws.com:11211'

# increase pg_stat_statement size
track_activity_query_size = 8192
track_functions = all

# we log slow queries over 100ms (by default)
log_min_duration_statement = 100
Expand Down

0 comments on commit 6b2990d

Please sign in to comment.