From: Bruce Momjian <bruce@momjian.us>
To: Danny Shemesh <dany74q@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Extended multivariate statistics are ignored (potentially related to high null fraction, not sure)
Date: Wed, 1 Jun 2022 16:08:38 -0400
Message-ID: <YpfHRiK02KvETKhj@momjian.us> (raw)
In-Reply-To: <CAFZC=QozuGJ3HZVh-vBJJvQbZBOmOJ6Cb-ZKCk3E98Enpu=SYg@mail.gmail.com>
References: <CAFZC=QozuGJ3HZVh-vBJJvQbZBOmOJ6Cb-ZKCk3E98Enpu=SYg@mail.gmail.com>
On Wed, Jun 1, 2022 at 07:28:58PM +0300, Danny Shemesh wrote:
> Hey everyone,
>
> I'm working on improving gathered statistics on several large tables (2TB /
> 500M records);
> I've created extended stats on correlated columns, ran analyze, compared the
> pre and post explains, and it seems as though the extended statistics are
> ignored -
> the estimation doesn't change much, and I can accurately derive the est. rows
> from multiplying the single-column freqs from pg_stats with the supplied
> values.
>
>
> Context:
> - pg 12.8
You should be on the most recent version of 12.X, and I do see some
extended statistics change in the later releases you are missing.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Indecision is a decision. Inaction is an action. Mark Batterson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bruce@momjian.us, dany74q@gmail.com
Subject: Re: Extended multivariate statistics are ignored (potentially related to high null fraction, not sure)
In-Reply-To: <YpfHRiK02KvETKhj@momjian.us>
References: <CAFZC=QozuGJ3HZVh-vBJJvQbZBOmOJ6Cb-ZKCk3E98Enpu=SYg@mail.gmail.com> <YpfHRiK02KvETKhj@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox