Re: Track the amount of time waiting due to cost_delay
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Bertrand Drouvot <bertranddrouvot.pg@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: 2024-12-16T22:02:56Z
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
On Mon, Dec 16, 2024 at 10:11:23AM +0000, Bertrand Drouvot wrote: > +#define PARALLEL_VACUUM_WORKER_DELAY_REPORT_INTERVAL_NS (NS_PER_S) > > Did not changed in v14, but "PARALLEL_VACUUM_REPORT_INTERVAL_NS" could be > an option as well. I think it keeps the key concepts while being more concise ( > WORKER is somehow implicit in the context). I think it's important to keep "delay" somewhere in the name, so how about PARALLEL_VACUUM_DELAY_REPORT_INTERVAL_NS? > -vacuum_delay_point(void) > +static void > +vacuum_delay_point_internal(bool is_analyze) > > Updated the comment on top of it accordingly. Thanks. I think we need to do some additional adjustments to this commentary since external callers should now use vacuum/analyze_delay_point(). -- nathan