From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, Jeff Davis <pgsql(at)j-davis(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Statistics Import and Export |
Date: | 2024-11-27 18:13:04 |
Message-ID: | CABUevExgrg7=Aczr1PJdvcWJTFeO3YPDwhXmBAdh6DAvkNyWYw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Nov 27, 2024, 17:44 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > On 2024-Nov-27, Bruce Momjian wrote:
> >> Would there be a default?
>
> > There would be no default. Running with no option given would raise an
> > error. The point is: you want to break scripts currently running
> > --analyze-in-stages so that they can make a choice of which of these two
> > modes to run. Your proposal (as I understand it) is to remove the
> > --analyze-in-stages option and add two other options. My proposal is to
> > keep --analyze-in-stages, but require it to have a specifier of which
> > mode to run. Both achieve what you want, but I think mine achieves it
> > in a cleaner way.
>
> I do not like the idea of breaking existing upgrade scripts,
> especially not by requiring them to use a parameter that older
> vacuumdb versions will reject. That makes it impossible to have a
> script that is version independent. I really doubt that there is any
> usability improvement to be had here that's worth that.
>
> How about causing "--analyze-in-stages" (as currently spelled) to
> be a no-op? We could keep the behavior available under some other
> name.
If we're doing that we might as well make this be the "when missing".
If we make it do nothing then we surprise the users of it today just as
much as we do if we make it "when missing". And it would actually solve the
problem for the others. But the point was that people didn't like silently
changing the behavior of the existing parameter - and making it a noop
would change it even more.
/Magnus
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2024-11-27 18:14:12 | Re: proposal: schema variables |
Previous Message | Alvaro Herrera | 2024-11-27 18:05:51 | Re: Statistics Import and Export |