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