Blame SOURCES/postgresql-logging.patch

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