Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmtUA-0005Rm-Mv for pgsql-performance@arkaria.postgresql.org; Thu, 22 Sep 2016 02:11:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bmtUA-0000pG-8c for pgsql-performance@arkaria.postgresql.org; Thu, 22 Sep 2016 02:11:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bmtU8-0000oh-8Y for pgsql-performance@postgresql.org; Thu, 22 Sep 2016 02:11:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bmtU1-0006oK-KB for pgsql-performance@postgresql.org; Thu, 22 Sep 2016 02:11:35 +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 u8M2BR9x024074; Wed, 21 Sep 2016 22:11:27 -0400 From: Tom Lane To: Mike Broers cc: pgsql-performance@postgresql.org Subject: Re: query against single partition uses index, against master table does seq scan In-reply-to: References: Comments: In-reply-to Mike Broers message dated "Wed, 21 Sep 2016 11:53:15 -0500" Date: Wed, 21 Sep 2016 22:11:27 -0400 Message-ID: <24073.1474510287@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Mike Broers writes: > Hello, I am curious about the performance of queries against a master table > that seem to do seq scans on each child table. When the same query is > issued at a partition directly it uses the partition index and is very > fast. What PG version is that? For me, everything since 9.0 seems to be willing to consider the type of plan you're expecting. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance