Blame SOURCES/postgresql-logging.patch

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