| From: | Shinya Kato <shinya11(dot)kato(at)gmail(dot)com> |
|---|---|
| To: | Sami Imseih <samimseih(at)gmail(dot)com> |
| Cc: | maciek(at)sakrejda(dot)org, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Robert Treat <rob(at)xzilla(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add mode column to pg_stat_progress_vacuum |
| Date: | 2025-11-20 06:23:32 |
| Message-ID: | CAOzEurRMnfT5p9MZ8yiV2rCE92y_dnvwZiKaQ49dAsw6hmjEFg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Nov 20, 2025 at 10:34 AM Sami Imseih <samimseih(at)gmail(dot)com> wrote:
>
> Hi,
>
> The patch looks overall good to me. I have a few comments:
Thank you for your review!
> 1/ I believe It is possible for the mode to flip to "failsafe" during the
> operation since lazy_check_wraparound_failsafe() is checked in-flight.
> I think this should be mentioned in the "mode" section of the documentation
> in the "failsafe" description.
+1, I've added the below statement to the v7 patch.
---
The vacuum may start in this mode or switch to it while running; the
value of the mode column may transition from another mode to failsafe
during the operation.
---
> 2/ It feels odd that we do not have parity of the "mode" column in
> pg_stat_progress_analyze. Should we add a "mode" column
> there also that shows if the analyze was triggered_by "manual" or
> "autovacuum"? An autovacuum in a relation can trigger both
> a vacuum and an analyze, and a VACUUM(ANALYZE) will
> also do both.
Thank you for your suggestions. I've created another patch v7-0002
adding a "triggered_by" column to pg_stat_progress_analyze.
--
Best regards,
Shinya Kato
NTT OSS Center
| Attachment | Content-Type | Size |
|---|---|---|
| v7-0001-Add-mode-and-triggered_by-columns-to-pg_stat_prog.patch | application/octet-stream | 11.6 KB |
| v7-0002-Add-triggered_by-column-to-pg_stat_progress_analy.patch | application/octet-stream | 5.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2025-11-20 06:24:12 | Re: Skipping schema changes in publication |
| Previous Message | jian he | 2025-11-20 06:11:27 | Re: ON CONFLICT DO SELECT (take 3) |