From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_upgrade analyze script |
Date: | 2020-10-06 20:40:30 |
Message-ID: | CABUevEwbMoAe1X+9+1SsdjVzACkcsWWKC8X9_sQA-QWseCSa7w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Oct 6, 2020 at 9:05 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Tue, Oct 6, 2020 at 11:43:01AM +0200, Magnus Hagander wrote:
> > For a long time now, pg_upgrade drops a script (analyze_new_cluster.sh)
> that
> > just calls vacuumdb to run the analyze in stages. This script made a lot
> of
> > sense back when it actually implemented the stages, but these days since
> it's
> > just calling a single command, I think it's just unnecessary
> complication.
> >
> > I suggest we drop it and just replace it with instructions to call
> vacuumdb
> > directly.
>
> Uh, that script has instructions on what is running. Do we want to show
> that at the end of running pg_upgrade or do people understand "stages"
> by now?
>
I think that's information that belongs in the documentation, for those
that case. I'm willing to bet that the large majority of the people who run
the script never read that, and certainly don't cancel it. Those that need
it to their upgrade planning long before they get to that stage.
It's already decently documented on the vacuumdb page. Maybe just add a
link to that from the pg_upgrade reference page (
https://www.postgresql.org/docs/current/pgupgrade.html under point 14)?
> Attached patch does this. It also removes the support in the instructions
> that
> > talk about pre-8.4 databases, which I believe is dead code per https://
> >
> postgr.es/m/CABUevEx-D0PNVe00tkeQRGennZQwDtBJn=493MJt-x6sppbUxA@mail.gmail.com
> .
>
> I just removed that.
>
Great, I'll simplify the patch if we agree that it's a good way forward,
and also add a doc reference per above.
--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2020-10-06 20:41:04 | Re: pg_upgrade dead code for pre-8.4 versions |
Previous Message | Andres Freund | 2020-10-06 20:15:49 | Re: Add primary keys to system catalogs |