Re: Statistics Import and Export: difference in statistics dumped - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Re: Statistics Import and Export: difference in statistics dumped
Date
Msg-id CAExHW5ucKQVMTr+0Cxd6YvMaooGfs0Rmk+1m+QTCVrRR+rP=kg@mail.gmail.com
Whole thread Raw
In response to Re: Statistics Import and Export: difference in statistics dumped  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On Tue, Mar 11, 2025 at 5:23 AM Jeff Davis <pgsql@j-davis.com> wrote:
>
> On Mon, 2025-03-10 at 17:53 -0400, Tom Lane wrote:
> > I wrote:
> > > I think what is happening is that the patch shut off CREATE
> > > INDEX's update of not only the table's stats but also the
> > > index's stats.  This seems unhelpful: the index's empty
> > > stats can never be what's wanted.
> >
> > I looked at this more closely and realized that it's a simple matter
> > of having made the tests in the wrong order.  The whole stanza
> > should only apply when dealing with the table, not the index.
> >
> > I verified that this change fixes the cross-version-upgrade
> > failure in local testing, and pushed it.
>
> Ah, thank you.
>
> Regards,
>         Jeff Davis
>

Thanks. I verified that it has been fixed now. But there's something
wrong with materialized view statistics. I am starting a new thread
for the same.

--
Best Wishes,
Ashutosh Bapat



pgsql-hackers by date:

Previous
From: Rushabh Lathia
Date:
Subject: Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints
Next
From: Álvaro Herrera
Date:
Subject: Re: bogus error message for ALTER TABLE ALTER CONSTRAINT