Adding deadlock timeout log to postgres. Lowering slow log to 1s from 5s.

This commit is contained in:
Samuel Clay 2015-07-27 18:21:55 -07:00
parent 0b398f4194
commit 037a82164a

View file

@ -338,7 +338,7 @@ effective_cache_size = 32GB
# fatal
# panic (effectively off)
log_min_duration_statement = 5000 # -1 is disabled, 0 logs all statements
log_min_duration_statement = 1000 # -1 is disabled, 0 logs all statements
# and their durations, > 0 logs only
# statements running at least this number
# of milliseconds
@ -376,7 +376,7 @@ log_line_prefix = '\033[32m%t %h \033[0m' # special values:
# processes
# %% = '%'
# e.g. '<%u%%%d> '
#log_lock_waits = off # log lock waits >= deadlock_timeout
log_lock_waits = on # log lock waits >= deadlock_timeout
#log_statement = 'none' # none, ddl, mod, all
#log_temp_files = -1 # log temporary files equal or larger
# than the specified size in kilobytes;
@ -494,7 +494,7 @@ default_text_search_config = 'pg_catalog.english'
# LOCK MANAGEMENT
#------------------------------------------------------------------------------
#deadlock_timeout = 1s
deadlock_timeout = 1s
#max_locks_per_transaction = 64 # min 10
# (change requires restart)
# Note: Each lock table slot uses ~270 bytes of shared memory, and there are