Blame SOURCES/postgresql-logging.patch

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