From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | Mircea Cadariu <cadariu(dot)mircea(at)gmail(dot)com>, "Zechman, Derek S" <Derek(dot)S(dot)Zechman(at)snapon(dot)com>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: analyze-in-stages post upgrade questions |
Date: | 2025-08-19 15:16:12 |
Message-ID: | 46e2b1dac20cd7bf8f0c9af855afdfebefc0f9d0.camel@cybertec.at |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Tue, 2025-08-19 at 23:40 +0900, Fujii Masao wrote:
> > > --- a/doc/src/sgml/ref/vacuumdb.sgml
> > > +++ b/doc/src/sgml/ref/vacuumdb.sgml
> > > @@ -397,6 +397,15 @@ PostgreSQL documentation
> > > Multiple tables can be vacuumed by writing multiple
> > > <option>-t</option> switches.
> > > </para>
> > > + <para>
> > > + If no tables are specified with the <option>--table</option> option,
> > > + <application>vacuumdb</application> will clean all regular tables
> > > + and materialized views in the connected database.
> > > + If <option>--analyze-only</option> or
> > > + <option>--analyze-in-stages</option> is also specified,
> > > + it will analyze all regular tables, partitioned tables,
> > > + and materialized views (but not foreign tables).
> > > + </para>
> >
> > I suggest replacing "clean" with "process", since VACUUM does so much more than
> > clean up dead tuples.
>
> I see your point. However, since the vacuumdb docs already use "clean"
> in several places, I think it's better to keep using "clean" here
> for consistency. Thought?
Works for me; I didn't consider that.
> > Concerning backpatching, I voted against, but I suggest that this be backpatched
> > to v18. I don't feel very strongly about it though.
>
> As for back-patching, I failed to find a strong reason to apply this change
> to v18 over the many other patches that could not be committed before
> the feature freeze... Of course if there's broad support for back-patching,
> we can certainly revisit it. But for now I'm thinking to commit the patch
> to master.
I don't have a strong reason either - my reasoning was that the change is small
and unlikely to introduce a bug, and that it would be nice to get more accurate
statistics on partitioned tables after "pg_upgrade" a year earlier.
But I won't object if the patch is only in v19.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2025-08-19 17:21:47 | Streaming replica hangs periodically for ~ 1 second - how to diagnose/debug |
Previous Message | Tom Lane | 2025-08-19 14:40:47 | Re: Why analyze reports 30000 pages and rows scanned. Why not just rows? |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2025-08-19 15:19:38 | Re: VM corruption on standby |
Previous Message | Andres Freund | 2025-08-19 14:57:43 | Re: VM corruption on standby |