From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
---|---|
To: | Bertrand Drouvot <bertranddrouvot(dot)pg(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-10 20:52:46 |
Message-ID: | Z6pnHkgMnmR3kyZB@nathan |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Feb 04, 2025 at 10:14:48AM +0000, Bertrand Drouvot wrote:
> On Mon, Feb 03, 2025 at 02:05:51PM -0600, Nathan Bossart wrote:
>> Barring objections, I am planning to commit this one soon. I might move
>> the addition of analyze_delay_point() to its own patch, but otherwise I
>> think it looks good to go.
>
> Yeah, I think that having analyze_delay_point() in its own patch makes sense.
> It's done that way in the attached and allows 0002 to be focus on the main
> feature.
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.
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.
--
nathan
Attachment | Content-Type | Size |
---|---|---|
v17-0001-Add-is_analyze-parameter-to-vacuum_delay_point.patch | text/plain | 11.3 KB |
v17-0002-Add-cost-based-delay-time-to-progress-views.patch | text/plain | 14.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ilia Evdokimov | 2025-02-10 21:14:47 | Re: explain analyze rows=%.0f |
Previous Message | Ilia Evdokimov | 2025-02-10 20:51:29 | Re: pull-up subquery if JOIN-ON contains refs to upper-query |