mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Add log_autoanalyze_min_duration
The log output functionality of log_autovacuum_min_duration applies to both VACUUM and ANALYZE, so it is not possible to separate the VACUUM and ANALYZE log output thresholds. Logs are likely to be output only for VACUUM and not for ANALYZE. Therefore, we decided to separate the threshold for log output of VACUUM by autovacuum (log_autovacuum_min_duration) and the threshold for log output of ANALYZE by autovacuum (log_autoanalyze_min_duration). Author: Shinya Kato <shinya11.kato@gmail.com> Reviewed-by: Kasahara Tatsuhito <kasaharatt@oss.nttdata.com> Discussion: https://www.postgresql.org/message-id/flat/CAOzEurQtfV4MxJiWT-XDnimEeZAY+rgzVSLe8YsyEKhZcajzSA@mail.gmail.com
This commit is contained in:
@@ -1771,8 +1771,8 @@
|
||||
},
|
||||
|
||||
{ name => 'log_autovacuum_min_duration', type => 'int', context => 'PGC_SIGHUP', group => 'LOGGING_WHAT',
|
||||
short_desc => 'Sets the minimum execution time above which autovacuum actions will be logged.',
|
||||
long_desc => '-1 disables logging autovacuum actions. 0 means log all autovacuum actions.',
|
||||
short_desc => 'Sets the minimum execution time above which vacuum actions by autovacuum will be logged.',
|
||||
long_desc => '-1 disables logging vacuum actions by autovacuum. 0 means log all vacuum actions by autovacuum.',
|
||||
flags => 'GUC_UNIT_MS',
|
||||
variable => 'Log_autovacuum_min_duration',
|
||||
boot_val => '600000',
|
||||
@@ -1780,6 +1780,16 @@
|
||||
max => 'INT_MAX',
|
||||
},
|
||||
|
||||
{ name => 'log_autoanalyze_min_duration', type => 'int', context => 'PGC_SIGHUP', group => 'LOGGING_WHAT',
|
||||
short_desc => 'Sets the minimum execution time above which analyze actions by autovacuum will be logged.',
|
||||
long_desc => '-1 disables logging analyze actions by autovacuum. 0 means log all analyze actions by autovacuum.',
|
||||
flags => 'GUC_UNIT_MS',
|
||||
variable => 'Log_autoanalyze_min_duration',
|
||||
boot_val => '600000',
|
||||
min => '-1',
|
||||
max => 'INT_MAX',
|
||||
},
|
||||
|
||||
{ name => 'log_parameter_max_length', type => 'int', context => 'PGC_SUSET', group => 'LOGGING_WHAT',
|
||||
short_desc => 'Sets the maximum length in bytes of data logged for bind parameter values when logging statements.',
|
||||
long_desc => '-1 means log values in full.',
|
||||
|
||||
@@ -588,7 +588,12 @@
|
||||
#debug_print_rewritten = off
|
||||
#debug_print_plan = off
|
||||
#debug_pretty_print = on
|
||||
#log_autovacuum_min_duration = 10min # log autovacuum activity;
|
||||
#log_autovacuum_min_duration = 10min # log vacuum activity by autovacuum;
|
||||
# -1 disables, 0 logs all actions and
|
||||
# their durations, > 0 logs only
|
||||
# actions running at least this number
|
||||
# of milliseconds.
|
||||
#log_autoanalyze_min_duration = 10min # log analyze activity by autovacuum;
|
||||
# -1 disables, 0 logs all actions and
|
||||
# their durations, > 0 logs only
|
||||
# actions running at least this number
|
||||
|
||||
Reference in New Issue
Block a user