|
|
13fbc1 |
Default to stderr-based logging with a week's worth of daily logfiles.
|
|
|
13fbc1 |
|
|
|
13fbc1 |
|
|
|
13fbc1 |
diff -Naur postgresql-9.1rc1.orig/src/backend/utils/misc/postgresql.conf.sample postgresql-9.1rc1/src/backend/utils/misc/postgresql.conf.sample
|
|
|
13fbc1 |
--- postgresql-9.1rc1.orig/src/backend/utils/misc/postgresql.conf.sample 2011-08-18 17:23:13.000000000 -0400
|
|
|
13fbc1 |
+++ postgresql-9.1rc1/src/backend/utils/misc/postgresql.conf.sample 2011-08-18 18:39:39.697526799 -0400
|
|
|
13fbc1 |
@@ -279,7 +279,7 @@
|
|
|
13fbc1 |
# requires logging_collector to be on.
|
|
|
13fbc1 |
|
|
|
13fbc1 |
# This is used when logging to stderr:
|
|
|
13fbc1 |
-#logging_collector = off # Enable capturing of stderr and csvlog
|
|
|
13fbc1 |
+logging_collector = on # Enable capturing of stderr and csvlog
|
|
|
13fbc1 |
# into log files. Required to be on for
|
|
|
13fbc1 |
# csvlogs.
|
|
|
13fbc1 |
# (change requires restart)
|
|
|
13fbc1 |
@@ -355,11 +355,11 @@
|
|
|
13fbc1 |
# These are only used if logging_collector is on:
|
|
|
13fbc1 |
#log_directory = 'log' # directory where log files are written,
|
|
|
13fbc1 |
# can be absolute or relative to PGDATA
|
|
|
13fbc1 |
-#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
|
|
|
13fbc1 |
+log_filename = 'postgresql-%a.log' # log file name pattern,
|
|
|
13fbc1 |
# can include strftime() escapes
|
|
|
13fbc1 |
#log_file_mode = 0600 # creation mode for log files,
|
|
|
13fbc1 |
# begin with 0 to use octal notation
|
|
|
13fbc1 |
-#log_truncate_on_rotation = off # If on, an existing log file with the
|
|
|
13fbc1 |
+log_truncate_on_rotation = on # If on, an existing log file with the
|
|
|
13fbc1 |
# same name as the new log file will be
|
|
|
13fbc1 |
# truncated rather than appended to.
|
|
|
13fbc1 |
# But such truncation only occurs on
|
|
|
13fbc1 |
@@ -367,9 +367,9 @@
|
|
|
13fbc1 |
# or size-driven rotation. Default is
|
|
|
13fbc1 |
# off, meaning append to existing files
|
|
|
13fbc1 |
# in all cases.
|
|
|
13fbc1 |
-#log_rotation_age = 1d # Automatic rotation of logfiles will
|
|
|
13fbc1 |
+log_rotation_age = 1d # Automatic rotation of logfiles will
|
|
|
13fbc1 |
# happen after that time. 0 disables.
|
|
|
13fbc1 |
-#log_rotation_size = 10MB # Automatic rotation of logfiles will
|
|
|
13fbc1 |
+log_rotation_size = 0 # Automatic rotation of logfiles will
|
|
|
13fbc1 |
# happen after that much log output.
|
|
|
13fbc1 |
# 0 disables.
|
|
|
13fbc1 |
|