Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c0IK1-0000fZ-6b for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Oct 2016 01:20:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c0IK0-0002tC-J3 for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Oct 2016 01:20:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c0IJz-0002sb-Kt for pgsql-bugs@postgresql.org; Sat, 29 Oct 2016 01:20:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c0IJt-0007VJ-0S for pgsql-bugs@postgresql.org; Sat, 29 Oct 2016 01:20:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9T1KMDv029427; Fri, 28 Oct 2016 21:20:22 -0400 From: Tom Lane To: clinton.adams@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14404: High row estimates when query uses master inherited tables In-reply-to: <20161028200412.15987.96482@wrigleys.postgresql.org> References: <20161028200412.15987.96482@wrigleys.postgresql.org> Comments: In-reply-to clinton.adams@gmail.com message dated "Fri, 28 Oct 2016 20:04:12 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29425.1477704022.1@sss.pgh.pa.us> Date: Fri, 28 Oct 2016 21:20:22 -0400 Message-ID: <29426.1477704022@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org clinton.adams@gmail.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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs