Re: Any idea on how to improve the statistics estimates for this plan? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Any idea on how to improve the statistics estimates for this plan?
Date
Msg-id 2904.1354940205@sss.pgh.pa.us
Whole thread Raw
In response to Re: Any idea on how to improve the statistics estimates for this plan?  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-performance
Jeff Janes <jeff.janes@gmail.com> writes:
> The trivial answer to "why" is that it thinks that the vast majority
> of the 33914 rows from the hash join will find no partners in r, but
> in fact each has about 10 partner in r.  Why does it think that?

I'm wondering if maybe the vast majority of the rows indeed have no join
partners, but there are a small number with a large number of partners.
The statistics might miss these, if so.

            regards, tom lane


pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Any idea on how to improve the statistics estimates for this plan?
Next
From: Guillaume Smet
Date:
Subject: Re: Any idea on how to improve the statistics estimates for this plan?