mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding deadlock timeout log to postgres. Lowering slow log to 1s from 5s.
This commit is contained in:
parent
0b398f4194
commit
037a82164a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue