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