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