postgresql / db-koji01: log queries

I'd like to log queries on db-koji01 for a short time to try and see whats causing us such pain.
After we have collected a bunch of queries we can revert this until we sort out what needs
to be changed. We may also change this log all to log just slow queries (per smooge's suggestion).
Hopefully this will get us the info we need to track this down.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-10-14 19:37:17 +00:00 committed by Pierre-Yves Chibon
parent d068a17db5
commit b5f8425273

View file

@ -268,7 +268,7 @@ log_truncate_on_rotation = on # If on, an existing log file of the
# in all cases. # in all cases.
log_rotation_age = 1d # Automatic rotation of logfiles will log_rotation_age = 1d # Automatic rotation of logfiles will
# happen after that time. 0 to disable. # happen after that time. 0 to disable.
log_rotation_size = 0 # Automatic rotation of logfiles will log_rotation_size = 10000 # Automatic rotation of logfiles will
# happen after that much log output. # happen after that much log output.
# 0 to disable. # 0 to disable.
@ -357,8 +357,8 @@ log_checkpoints = on
# processes # processes
# %% = '%' # %% = '%'
# e.g. '<%u%%%d> ' # 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_statement = 'all' # none, ddl, mod, all
log_temp_files = 0 # log temporary files equal or larger log_temp_files = 0 # log temporary files equal or larger
# than specified size; # than specified size;
# -1 disables, 0 logs all temp files # -1 disables, 0 logs all temp files