Add cost-based vacuum delay time to progress views.
authorNathan Bossart <[email protected]>
Tue, 11 Feb 2025 22:38:14 +0000 (16:38 -0600)
committerNathan Bossart <[email protected]>
Tue, 11 Feb 2025 22:38:14 +0000 (16:38 -0600)
commitbb8dff9995f2cf501376772898bcbcf58aa05cde
tree48b3befec7d9e729e376fb9cc652cfb76c302dc5
parente5b0b0ce150972bf162a059430d84e5f8e07cf30
Add cost-based vacuum delay time to progress views.

This commit adds the amount of time spent sleeping due to
cost-based delay to the pg_stat_progress_vacuum and
pg_stat_progress_analyze system views.  A new configuration
parameter named track_cost_delay_timing, which is off by default,
controls whether this information is gathered.  For vacuum, the
reported value includes the sleep time of any associated parallel
workers.  However, parallel workers only report their sleep time
once per second to avoid overloading the leader process.

Bumps catversion.

Author: Bertrand Drouvot <[email protected]>
Co-authored-by: Nathan Bossart <[email protected]>
Reviewed-by: Sami Imseih <[email protected]>
Reviewed-by: Robert Haas <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Reviewed-by: Masahiro Ikeda <[email protected]>
Reviewed-by: Dilip Kumar <[email protected]>
Reviewed-by: Sergei Kornilov <[email protected]>
Discussion: https://postgr.es/m/ZmaXmWDL829fzAVX%40ip-10-97-1-34.eu-west-3.compute.internal
doc/src/sgml/config.sgml
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/commands/vacuum.c
src/backend/commands/vacuumparallel.c
src/backend/utils/misc/guc_tables.c
src/backend/utils/misc/postgresql.conf.sample
src/include/catalog/catversion.h
src/include/commands/progress.h
src/include/commands/vacuum.h
src/test/regress/expected/rules.out