From 603fe5e8e9febaa285f541cae47d9c519c7976e1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 14 Oct 2019 20:40:00 +0000 Subject: [PATCH] postgresql / db-koji: Move instead to logging just the slow stuff. Signed-off-by: Kevin Fenzi --- roles/postgresql_server/templates/postgresql.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/postgresql_server/templates/postgresql.conf b/roles/postgresql_server/templates/postgresql.conf index c38a2fd689..3ee4d0bccc 100644 --- a/roles/postgresql_server/templates/postgresql.conf +++ b/roles/postgresql_server/templates/postgresql.conf @@ -320,7 +320,7 @@ log_rotation_size = 10000 # Automatic rotation of logfiles will # fatal # panic (effectively off) -#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements +log_min_duration_statement = 10000 # -1 is disabled, 0 logs all statements # and their durations, > 0 logs only # statements running at least this time. @@ -358,7 +358,7 @@ log_checkpoints = on # %% = '%' # e.g. '<%u%%%d> ' log_lock_waits = on # log lock waits >= deadlock_timeout -log_statement = 'all' # none, ddl, mod, all +#log_statement = 'all' # none, ddl, mod, all log_temp_files = 0 # log temporary files equal or larger # than specified size; # -1 disables, 0 logs all temp files