Re: Reading explain plans- row estimates/actuals on lower nodes vsnext level up - Mailing list pgsql-performance

From Tomas Vondra
Subject Re: Reading explain plans- row estimates/actuals on lower nodes vsnext level up
Date
Msg-id 20191018001334.uhjcp7kpbj46gl5e@development
Whole thread Raw
In response to Reading explain plans- row estimates/actuals on lower nodes vs nextlevel up  (Michael Lewis <mlewis@entrata.com>)
List pgsql-performance
On Thu, Oct 17, 2019 at 03:15:21PM -0600, Michael Lewis wrote:
>https://explain.depesz.com/s/Caa5
>
>I am looking at this explain analyze output and seeing a nested loop
>towards the lowest levels with pretty bad estimate vs actual (2.3k vs 99k),
>but the things that feed that nested loop seem like the estimates are
>rather close (index scans with 11 estimated vs 30 actual and 3350 vs
>3320)... why does the higher node have such a different estimate vs actual
>ratio?
>

This is usually a sign of non-uniform distribution for the join columns,
and/or correlation between sides of the join.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Re: pg_stat_bgwriter
Next
From: dangal
Date:
Subject: Re: pg_stat_bgwriter