Re: Inaccurate (sometimes wildly so) row estimates for simple join - Mailing list pgsql-general

From Michael Lewis
Subject Re: Inaccurate (sometimes wildly so) row estimates for simple join
Date
Msg-id CAHOFxGpFXtZvnCeqZ3Rcy-6MnkDCRKSNe_mLOdijP+hh+wt8Ww@mail.gmail.com
Whole thread Raw
In response to Inaccurate (sometimes wildly so) row estimates for simple join  (Greg Nolle <greg.nolle@voidbridge.com>)
Responses Re: Inaccurate (sometimes wildly so) row estimates for simple join  (Greg Nolle <greg.nolle@voidbridge.com>)
List pgsql-general
On Fri, May 22, 2020 at 7:27 AM Greg Nolle <greg.nolle@voidbridge.com> wrote:
The crux seems to be that test_b does not have an even distribution for a_id values: it only has records for two of the values in the referenced table. This is how our real dataset is too and isn’t something we can really change.

How does it perform with extended statistics created for these two columns?

pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Suggestion to improve query performance of data validation in proc.
Next
From: Greg Nolle
Date:
Subject: Re: Inaccurate (sometimes wildly so) row estimates for simple join