Re: Extended statistics for correlated columns, row estimates when values are not in MCVs list - Mailing list pgsql-general

From Michael Lewis
Subject Re: Extended statistics for correlated columns, row estimates when values are not in MCVs list
Date
Msg-id CAMcsB=wSWvVwkj4NyuKFvyyPK+v0w=an700qUgy2k1Sj7G1raA@mail.gmail.com
Whole thread Raw
In response to Re: Extended statistics for correlated columns, row estimates when values are not in MCVs list  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List pgsql-general
On Mon, Dec 7, 2020 at 8:31 AM Tomas Vondra <tomas.vondra@enterprisedb.com> wrote:
What you might try is defining the statistics with only the functional
dependencies. That should consider the column-level correlation even
when the combination of values is not in the MCV. It might make the
"good" estimate worse, but that's an inherent trade-off.

Thanks very much. Removing MCVs type works perfectly for my use cases. 

pgsql-general by date:

Previous
From: Dirk Mika
Date:
Subject: Re: Set COLLATE on a session level
Next
From: "David G. Johnston"
Date:
Subject: Re: JDBC driver - is "getGeneratedKeys()" guaranteed to return the ids in the same order a batch insert was made?