diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-10-17 16:31:13 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-10-17 16:34:48 -0400 |
commit | 7d3235ba42f8d5fc70c58e242702cc5e2e3549a6 (patch) | |
tree | e105c3e73288dc9ed7164d44ef94678d7e2cbdc8 /src | |
parent | 5ff4a67f63fd6d3eb01ff9707d4674ed54a89f3b (diff) | |
download | postgresql-7d3235ba42f8d5fc70c58e242702cc5e2e3549a6.tar.gz postgresql-7d3235ba42f8d5fc70c58e242702cc5e2e3549a6.zip |
By default, set log_line_prefix = '%m [%p] '.
This value might not be to everyone's taste; in particular, some
people might prefer %t to %m, and others may want %u, %d, or other
fields. However, it's a vast improvement on the old default of ''.
Christoph Berg
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/misc/guc.c | 2 | ||||
-rw-r--r-- | src/backend/utils/misc/postgresql.conf.sample | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 622279b058a..65660c1bf7e 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -3014,7 +3014,7 @@ static struct config_string ConfigureNamesString[] = gettext_noop("If blank, no prefix is used.") }, &Log_line_prefix, - "", + "%m [%p] ", NULL, NULL, NULL }, diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 05b1373594b..159ada3bc63 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -430,7 +430,7 @@ #log_duration = off #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off -#log_line_prefix = '' # special values: +#log_line_prefix = '%m [%p] ' # special values: # %a = application name # %u = user name # %d = database name |