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