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

From Jeff Davis
Subject Re: Statistics Import and Export: difference in statistics dumped
Date
Msg-id 9a9090634e24b19ae1eff8a275f2db84f261c58f.camel@j-davis.com
Whole thread Raw
In response to Re: Statistics Import and Export: difference in statistics dumped  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Statistics Import and Export: difference in statistics dumped
List pgsql-hackers
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




pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: BitmapHeapScan streaming read user and prelim refactoring
Next
From: Peter Smith
Date:
Subject: Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.