summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-08-31 04:53:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-08-31 04:53:44 +0000
commit8c603f2c95e34f8c06994c0454779b76e7f6c012 (patch)
treeda59ab331f2c160f85f5ec5ada37cb9dd5809f63 /src/backend/utils/misc/postgresql.conf.sample
parent25aba1cafd733bfc9fc6128fc6d31db7c1e82b34 (diff)
downloadpostgresql-8c603f2c95e34f8c06994c0454779b76e7f6c012.tar.gz
Replace log_filename_prefix with more general log_filename parameter,
to allow DBA to choose the form in which log filenames reflect the current time. Also allow for truncating instead of appending to pre-existing files --- this is convenient when the log filename pattern rewrites the same names cyclically. Per Ed L.
Diffstat (limited to 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index cdd427f04b..67b9dbadaf 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -171,9 +171,17 @@
# This is relevant when logging to stderr:
#redirect_stderr = false # Enable capturing of stderr into log files.
# These are only relevant if redirect_stderr is true:
-#log_directory = 'pg_log' # Directory where logfiles are written.
+#log_directory = 'pg_log' # Directory where log files are written.
# May be specified absolute or relative to PGDATA
-#log_filename_prefix = 'postgresql_' # Prefix for logfile names.
+#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # Log file name pattern.
+ # May include strftime() escapes
+#log_truncate_on_rotation = false # If true, any existing log file of the
+ # same name as the new log file will be truncated
+ # rather than appended to. But such truncation
+ # only occurs on time-driven rotation,
+ # not on restarts or size-driven rotation.
+ # Default is false, meaning append to existing
+ # files in all cases.
#log_rotation_age = 1440 # Automatic rotation of logfiles will happen after
# so many minutes. 0 to disable.
#log_rotation_size = 10240 # Automatic rotation of logfiles will happen after