mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Add delay time to VACUUM/ANALYZE (VERBOSE) and autovacuum logs.
Commit bb8dff9995
added this information to the
pg_stat_progress_vacuum and pg_stat_progress_analyze system views.
This commit adds the same information to the output of VACUUM and
ANALYZE with the VERBOSE option and to the autovacuum logs.
Suggested-by: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/ZmaXmWDL829fzAVX%40ip-10-97-1-34.eu-west-3.compute.internal
This commit is contained in:
@@ -8267,9 +8267,12 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
platforms. You can use the <xref linkend="pgtesttiming"/> tool to
|
||||
measure the overhead of timing on your system. Cost-based vacuum delay
|
||||
timing information is displayed in
|
||||
<link linkend="vacuum-progress-reporting"><structname>pg_stat_progress_vacuum</structname></link>
|
||||
and
|
||||
<link linkend="analyze-progress-reporting"><structname>pg_stat_progress_analyze</structname></link>.
|
||||
<link linkend="vacuum-progress-reporting"><structname>pg_stat_progress_vacuum</structname></link>,
|
||||
<link linkend="analyze-progress-reporting"><structname>pg_stat_progress_analyze</structname></link>,
|
||||
in the output of <xref linkend="sql-vacuum"/> when the
|
||||
<literal>VERBOSE</literal> option is used, and by autovacuum for
|
||||
auto-vacuums and auto-analyzes when
|
||||
<xref linkend="guc-log-autovacuum-min-duration"/> is set.
|
||||
Only superusers and users with the appropriate <literal>SET</literal>
|
||||
privilege can change this setting.
|
||||
</para>
|
||||
|
Reference in New Issue
Block a user