Blame SOURCES/postgresql-logging.patch

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