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