]> TLD Linux GIT Repositories - packages/postgresql.git/commitdiff
- use full name in syslog ident, updated default logging config
authorMarcin Krol <hawk@tld-linux.org>
Mon, 3 Dec 2018 13:25:02 +0000 (13:25 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 3 Dec 2018 13:25:02 +0000 (13:25 +0000)
postgresql-conf.patch
postgresql.spec

index cb6dba5b828e4c9094e50f2e6fb2795186119141..288a7954138a5d7be8945531be6e4e8b40a81fd6 100644 (file)
@@ -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-10.6/src/backend/utils/misc/postgresql.conf.sample      2018-11-05 21:45:50.000000000 +0000
++++ postgresql-10.6/src/backend/utils/misc/postgresql.conf.sample      2018-12-03 13:23:39.277403000 +0000
+@@ -341,7 +341,7 @@
  
  # - Where to Log -
  
@@ -9,7 +9,7 @@
                                        # stderr, csvlog, syslog, and eventlog,
                                        # depending on platform.  csvlog
                                        # requires logging_collector to be on.
-@@ -262,8 +262,8 @@
+@@ -374,9 +374,9 @@
                                        # 0 disables.
  
  # These are relevant when logging to syslog:
 -#syslog_ident = 'postgres'
 -#syslog_sequence_numbers = on
 +syslog_facility = 'LOCAL0'
-+syslog_ident = 'postgres-10'
++syslog_ident = 'postgresql-10'
 +syslog_sequence_numbers = on
  #syslog_split_messages = on
  
  # This is only relevant when logging to eventlog (win32):
-@@ -324,7 +324,7 @@
+@@ -437,12 +437,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 = '%m [%p] '         # special values:
++log_line_prefix = '%m [%p] %q%h/%a %u/%d '    # special values:
+                                       #   %a = application name
+                                       #   %u = user name
+                                       #   %d = database name
index 61a200942252e5af3db3007aa559a2ac28e1bf73..a68f619a805a27c05c472d1e58c611ff572713c1 100644 (file)
@@ -29,7 +29,7 @@ Summary(uk.UTF-8):    PostgreSQL - система керування базами 
 Summary(zh_CN.UTF-8):  PostgreSQL 客户端程序和库文件
 Name:          postgresql-%{pgsqlversion}
 Version:       %{pgsqlversion}.6
-Release:       1
+Release:       2
 License:       BSD
 Group:         Applications/Databases
 Source0:       http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2