From: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
---|---|
To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
Cc: | Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Masahiro Ikeda <ikedamsh(at)oss(dot)nttdata(dot)com>, "Imseih (AWS), Sami" <simseih(at)amazon(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com> |
Subject: | Re: Track the amount of time waiting due to cost_delay |
Date: | 2025-02-11 08:51:15 |
Message-ID: | Z6sPg1pYfFO5R5rx@ip-10-97-1-34.eu-west-3.compute.internal |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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
Attachment | Content-Type | Size |
---|---|---|
v17-0001-Add-is_analyze-parameter-to-vacuum_delay_point.patch | text/x-diff | 11.7 KB |
v17-0002-Add-cost-based-delay-time-to-progress-views.patch | text/x-diff | 15.1 KB |
v17-0003-Add-cost-based-delay-time-to-VACUUM-ANALYZE-VERB.patch | text/x-diff | 3.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Коротков Максим | 2025-02-11 08:52:29 | [PATCH] snowball: fix potential NULL dereference |
Previous Message | Sergey Tatarintsev | 2025-02-11 08:10:07 | Re: pgbench with partitioned tables |