Re: BUG #18375: requested statistics kind "f" is not yet built for statistics object 16722

Richard Guo <guofenglinux@gmail.com>

From: Richard Guo <guofenglinux@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: horst.reiterer@fabasoft.com, pgsql-bugs@lists.postgresql.org
Date: 2024-03-05T01:09:55Z
Lists: pgsql-bugs
On Tue, Mar 5, 2024 at 8:35 AM David Rowley <dgrowleyml@gmail.com> wrote:

> On Tue, 5 Mar 2024 at 04:03, PG Bug reporting form
> <noreply@postgresql.org> wrote:
> > Before 15.6, we haven't see this error. Unfortunately, I cannot reproduce
> > the issue with a minimal test case. Interestingly, the error states that
> > statistics for kind "f" are not yet built. If I'm not mistaken, "f"
> > corresponds to STATS_EXT_DEPENDENCIES, which we're not using anywhere in
> the
> > installation.
>
> I'd say that's a mistake in the ERROR message and unrelated to the
> wider problem you're seeing.
>
> I see there's another one in statext_expressions_load() too. The
> attached fixes both.


Nice catch.  Looking at other statext_XXX_load functions and we're good
there.

Thanks
Richard

Commits

  1. Fix incorrectly reported stats kind in "can't happen" ERROR