Update patch file. V4_2_9 V4_2_9_RPM
authorBo Peng <pengbo@sraoss.co.jp>
Wed, 18 May 2022 07:13:02 +0000 (16:13 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Wed, 18 May 2022 07:13:02 +0000 (16:13 +0900)
src/redhat/pgpool_log.patch

index aaab1e8d775573a0a2a1a30a1acdcce028da1e47..73f0c87f9f02f3a9a56cf26696c08bf4003df516 100644 (file)
-*** src/sample/pgpool.conf.sample      2022-02-10 12:49:15.079700949 +0900
---- pgpool.conf.sample 2022-02-22 11:05:17.073517397 +0900
+*** src/sample/pgpool.conf.sample      2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample 2022-05-18 15:52:31.397263762 +0900
 ***************
-*** 186,192 ****
+*** 252,268 ****
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 252,268 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = 'pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+***************
+*** 270,276 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 270,276 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 280,290 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 280,290 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-logical      2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-logical 2022-05-18 15:55:40.671516384 +0900
+***************
+*** 251,267 ****
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 251,267 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = 'pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+***************
+*** 269,275 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 269,275 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 279,289 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 279,289 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-raw  2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-raw     2022-05-18 15:57:27.424222876 +0900
+***************
+*** 252,268 ****
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 252,268 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = 'pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+***************
+*** 270,276 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 270,276 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 280,290 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 280,290 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
   
-  # - Where to log -
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-replication  2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-replication     2022-05-18 16:08:49.384653079 +0900
+***************
+*** 247,263 ****
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 247,263 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = ''pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+***************
+*** 265,271 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 265,271 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 275,285 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 275,285 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
   
-! #log_destination = 'stderr'
-                                     # Where to log
-                                     # Valid values are combinations of stderr,
-                                     # and syslog. Default to stderr.
---- 186,192 ----
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-slony        2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-slony   2022-05-18 15:59:12.201916300 +0900
+***************
+*** 248,264 ****
+                                          #   panic
   
-  # - Where to log -
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 248,264 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = 'pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
   
-! log_destination = 'stderr'
-                                     # Where to log
-                                     # Valid values are combinations of stderr,
-                                     # and syslog. Default to stderr.
+***************
+*** 266,272 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 266,272 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 276,286 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 276,286 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-snapshot     2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-snapshot        2022-05-18 16:00:32.303446411 +0900
+***************
+*** 245,261 ****
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! #logging_collector = off
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! #log_directory = '/tmp/pgpool_logs'
+                                          # directory where log files are written,
+                                          # can be absolute
+! #log_filename = 'pgpool-%Y-%m-%d_%H%M%S.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+--- 245,261 ----
+                                          #   panic
+  
+  # This is used when logging to stderr:
+! logging_collector = on
+                                          # Enable capturing of stderr
+                                          # into log files.
+                                          # (change requires restart)
+  
+  # -- Only used if logging_collector is on ---
+  
+! log_directory = '/var/log/pgpool_log'
+                                          # directory where log files are written,
+                                          # can be absolute
+! log_filename = 'pgpool-%a.log'
+                                          # log file name pattern,
+                                          # can include strftime() escapes
+  
+***************
+*** 263,269 ****
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! #log_truncate_on_rotation = off
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+--- 263,269 ----
+                                          # creation mode for log files,
+                                          # begin with 0 to use octal notation
+  
+! log_truncate_on_rotation = on
+                                          # If on, an existing log file with the
+                                          # same name as the new log file will be
+                                          # truncated rather than appended to.
+***************
+*** 273,283 ****
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! #log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! #log_rotation_size = 10MB
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+--- 273,283 ----
+                                          # off, meaning append to existing files
+                                          # in all cases.
+  
+! log_rotation_age = 1d
+                                          # Automatic rotation of logfiles will
+                                          # happen after that (minutes)time.
+                                          # 0 disables time based rotation.
+! log_rotation_size = 0
+                                          # Automatic rotation of logfiles will
+                                          # happen after that much (KB) log output.
+                                          # 0 disables size based rotation.
+*** src/sample/pgpool.conf.sample-stream       2022-05-18 15:32:09.661157252 +0900
+--- pgpool.conf.sample-stream  2022-05-18 16:02:02.229041543 +0900
 ***************
 *** 252,268 ****
                                           #   panic
                                           # Automatic rotation of logfiles will
                                           # happen after that (minutes)time.
                                           # 0 disables time based rotation.
-! log_rotation_size = 0 
+! log_rotation_size = 0
                                           # Automatic rotation of logfiles will
                                           # happen after that much (KB) log output.
                                           # 0 disables size based rotation.