|
|
682ed4 |
diff -ur postgresql-15.0/src/backend/utils/misc/postgresql.conf.sample patched/src/backend/utils/misc/postgresql.conf.sample
|
|
|
682ed4 |
--- postgresql-15.0/src/backend/utils/misc/postgresql.conf.sample 2022-10-10 22:57:37.000000000 +0200
|
|
|
682ed4 |
+++ patched/src/backend/utils/misc/postgresql.conf.sample 2022-10-13 10:51:57.000000000 +0200
|
|
|
682ed4 |
@@ -448,7 +448,7 @@
|
|
|
682ed4 |
# logging_collector to be on.
|
|
|
682ed4 |
|
|
|
682ed4 |
# This is used when logging to stderr:
|
|
|
682ed4 |
-#logging_collector = off # Enable capturing of stderr, jsonlog,
|
|
|
682ed4 |
+logging_collector = on # Enable capturing of stderr, jsonlog,
|
|
|
682ed4 |
# and csvlog into log files. Required
|
|
|
682ed4 |
# to be on for csvlogs and jsonlogs.
|
|
|
682ed4 |
# (change requires restart)
|
|
|
682ed4 |
@@ -456,16 +456,16 @@
|
|
|
682ed4 |
# These are only used if logging_collector is on:
|
|
|
682ed4 |
#log_directory = 'log' # directory where log files are written,
|
|
|
682ed4 |
# can be absolute or relative to PGDATA
|
|
|
682ed4 |
-#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
|
|
|
682ed4 |
+log_filename = 'postgresql-%a.log' # log file name pattern,
|
|
|
682ed4 |
# can include strftime() escapes
|
|
|
682ed4 |
#log_file_mode = 0600 # creation mode for log files,
|
|
|
682ed4 |
# begin with 0 to use octal notation
|
|
|
682ed4 |
-#log_rotation_age = 1d # Automatic rotation of logfiles will
|
|
|
682ed4 |
+log_rotation_age = 1d # Automatic rotation of logfiles will
|
|
|
682ed4 |
# happen after that time. 0 disables.
|
|
|
682ed4 |
-#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
|
|
682ed4 |
+log_rotation_size = 0 # Automatic rotation of logfiles will
|
|
|
682ed4 |
# happen after that much log output.
|
|
|
682ed4 |
# 0 disables.
|
|
|
682ed4 |
-#log_truncate_on_rotation = off # If on, an existing log file with the
|
|
|
682ed4 |
+log_truncate_on_rotation = on # If on, an existing log file with the
|
|
|
682ed4 |
# same name as the new log file will be
|
|
|
682ed4 |
# truncated rather than appended to.
|
|
|
682ed4 |
# But such truncation only occurs on
|