Blame postgresql-logging.patch

e471e88
diff -up postgresql-17devel/src/backend/utils/misc/postgresql.conf.samplepatch2 postgresql-17devel/src/backend/utils/misc/postgresql.conf.sample
e471e88
--- postgresql-17devel/src/backend/utils/misc/postgresql.conf.samplepatch2	2024-01-22 01:20:02.000000000 +0100
e471e88
+++ postgresql-17devel/src/backend/utils/misc/postgresql.conf.sample	2024-02-02 09:00:38.532730471 +0100
e471e88
@@ -460,7 +460,7 @@
346ba97
 					# logging_collector to be on.
346ba97
 
346ba97
 # This is used when logging to stderr:
346ba97
-#logging_collector = off		# Enable capturing of stderr, jsonlog,
346ba97
+logging_collector = on			# Enable capturing of stderr, jsonlog,
346ba97
 					# and csvlog into log files. Required
346ba97
 					# to be on for csvlogs and jsonlogs.
346ba97
 					# (change requires restart)
e471e88
@@ -468,16 +468,16 @@
346ba97
 # These are only used if logging_collector is on:
346ba97
 #log_directory = 'log'			# directory where log files are written,
346ba97
 					# can be absolute or relative to PGDATA
346ba97
-#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'	# log file name pattern,
346ba97
+log_filename = 'postgresql-%a.log'	# log file name pattern,
e471e88
 							# can include strftime() escapes
346ba97
 #log_file_mode = 0600			# creation mode for log files,
346ba97
 					# begin with 0 to use octal notation
346ba97
-#log_rotation_age = 1d			# Automatic rotation of logfiles will
346ba97
+log_rotation_age = 1d			# Automatic rotation of logfiles will
346ba97
 					# happen after that time.  0 disables.
346ba97
 #log_rotation_size = 10MB		# Automatic rotation of logfiles will
346ba97
 					# happen after that much log output.
346ba97
 					# 0 disables.
346ba97
-#log_truncate_on_rotation = off		# If on, an existing log file with the
346ba97
+log_truncate_on_rotation = on		# If on, an existing log file with the
346ba97
 					# same name as the new log file will be
346ba97
 					# truncated rather than appended to.
346ba97
 					# But such truncation only occurs on