Re: Track the amount of time waiting due to cost_delay
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>, Masahiro Ikeda <ikedamsh@oss.nttdata.com>, "Imseih (AWS), Sami" <simseih@amazon.com>, Masahiko Sawada <sawada.mshk@gmail.com>, pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2025-02-11T08:51:15Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add delay time to VACUUM/ANALYZE (VERBOSE) and autovacuum logs.
- 7720082ae532 18.0 landed
-
Add cost-based vacuum delay time to progress views.
- bb8dff9995f2 18.0 landed
-
Add is_analyze parameter to vacuum_delay_point().
- e5b0b0ce1509 18.0 landed
-
Refresh cost-based delay params more frequently in autovacuum
- 7d71d3dd080b 16.0 cited
Attachments
Hi, On Mon, Feb 10, 2025 at 02:52:46PM -0600, Nathan Bossart wrote: > Here is what I have prepared for commit. Other expanding the commit > messages, I've modified 0001 to just add a parameter to > vacuum_delay_point() to indicate whether this is a vacuum or analyze. I > was worried that adding an analyze_delay_point() could cause third-party > code to miss this change. We want such code to correctly indicate the type > of operation so that the progress views work for them, too. Good point, that makes fully sense. v17 LGTM. > Off-list, I've asked Bertrand to gauge the feasibility of adding this > information to the autovacuum logs and to VACUUM/ANALYZE (VERBOSE). IMHO > those are natural places to surface this information, and I want to ensure > that we're not painting ourselves into a corner with the approach we're > using for the progress views. Yeah, I looked at it and that looks as simmple as 0003 attached (as that's the leader that is doing the report in case of parallel workers being used). 0001 and 0002 remain unchanged. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com