From: Marcin Krol Date: Mon, 3 Dec 2018 13:34:11 +0000 (+0000) Subject: - use full name in syslog ident, updated default logging config X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=397970d6b1f5498982363338ac77b89e0e326d23;p=packages%2Fpostgresql.git - use full name in syslog ident, updated default logging config --- diff --git a/postgresql-conf.patch b/postgresql-conf.patch index 4e29832..1516664 100644 --- a/postgresql-conf.patch +++ b/postgresql-conf.patch @@ -1,6 +1,6 @@ ---- postgresql-8.3RC1/src/backend/utils/misc/postgresql.conf.sample.orig 2007-12-07 16:44:56.000000000 +0000 -+++ postgresql-8.3RC1/src/backend/utils/misc/postgresql.conf.sample 2008-01-07 22:19:56.904649611 +0000 -@@ -253,7 +253,7 @@ +--- postgresql-9.5.15/src/backend/utils/misc/postgresql.conf.sample 2018-11-05 21:49:29.000000000 +0000 ++++ postgresql-9.5.15/src/backend/utils/misc/postgresql.conf.sample 2018-12-03 13:32:36.483403000 +0000 +@@ -315,7 +315,7 @@ # - Where to Log - @@ -9,8 +9,8 @@ # stderr, csvlog, syslog, and eventlog, # depending on platform. csvlog # requires logging_collector to be on. -@@ -262,8 +262,8 @@ - # 0 to disable. +@@ -348,8 +348,8 @@ + # 0 disables. # These are relevant when logging to syslog: -#syslog_facility = 'LOCAL0' @@ -18,14 +18,21 @@ +syslog_facility = 'LOCAL0' +syslog_ident = 'postgres-9.5' - - # - When to Log - -@@ -324,7 +324,7 @@ + # This is only relevant when logging to eventlog (win32): + # (change requires restart) +@@ -409,12 +409,12 @@ #debug_print_plan = off - #debug_pretty_print = off + #debug_pretty_print = on #log_checkpoints = off -#log_connections = off +-#log_disconnections = off +log_connections = on - #log_disconnections = off ++log_disconnections = on #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] %q%h/%a %u/%d ' # special values: + # %a = application name + # %u = user name + # %d = database name diff --git a/postgresql.spec b/postgresql.spec index b0ae11a..3c9fe7f 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -29,7 +29,7 @@ Summary(uk.UTF-8): PostgreSQL - система керування базами Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件 Name: postgresql-%{pgsqlversion} Version: %{pgsqlversion}.15 -Release: 1 +Release: 2 License: BSD Group: Applications/Databases Source0: http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2