]> TLD Linux GIT Repositories - packages/postgresql.git/blobdiff - postgresql-conf.patch
- use full name in syslog ident, updated default logging config
[packages/postgresql.git] / postgresql-conf.patch
index 8db0a1f36f349a4660b5e8911e20c97f700f9469..6a4c292f828121f1d81c92ac3633b893b5e9b354 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-9.3.25/src/backend/utils/misc/postgresql.conf.sample    2018-11-05 21:53:28.000000000 +0000
++++ postgresql-9.3.25/src/backend/utils/misc/postgresql.conf.sample    2018-12-03 13:37:57.846403000 +0000
+@@ -291,7 +291,7 @@
  
  # - Where to Log -
  
@@ -9,23 +9,30 @@
                                        # stderr, csvlog, syslog, and eventlog,
                                        # depending on platform.  csvlog
                                        # requires logging_collector to be on.
-@@ -262,8 +262,8 @@
-                                       # 0 to disable.
+@@ -324,8 +324,8 @@
+                                       # 0 disables.
  
  # These are relevant when logging to syslog:
 -#syslog_facility = 'LOCAL0'
 -#syslog_ident = 'postgres'
 +syslog_facility = 'LOCAL0'
-+syslog_ident = 'postgres-9.3'
++syslog_ident = 'postgresql-9.3'
  
- # - When to Log -
-@@ -324,7 +324,7 @@
+ # This is only relevant when logging to eventlog (win32):
+ # (change requires restart)
+@@ -385,12 +385,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