Re: BUG #14404: High row estimates when query uses master inherited tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: clinton(dot)adams(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14404: High row estimates when query uses master inherited tables
Date: 2016-10-29 01:20:22
Message-ID: 29426.1477704022@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

clinton(dot)adams(at)gmail(dot)com writes:
> Row estimates are way off (406484054678631 vs 38) when using master
> partition tables. If I change the query to go directly against one child
> table, estimates and query time are in line with what I expect.

Those EXPLAINs do look kinda fishy, but with only this much information,
it's unlikely that anyone is going to be able to guess why. A
self-contained example would be much more useful.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message dv 2016-10-29 12:13:06 ORDER BY TABLENAME, possible bug
Previous Message clinton.adams 2016-10-28 20:04:12 BUG #14404: High row estimates when query uses master inherited tables