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