Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XOUDg-0005h5-8Z for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2014 16:12:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XOUDf-0001Sp-Mq for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Sep 2014 16:12:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XOUDe-0001QA-8m for pgsql-hackers@postgresql.org; Mon, 01 Sep 2014 16:12:38 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XOUDb-00024h-3G for pgsql-hackers@postgresql.org; Mon, 01 Sep 2014 16:12:36 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 1944429724; Mon, 1 Sep 2014 09:12:33 -0700 (PDT) Received: from EX13-CAS-008.vmware.com (EX13-CAS-008.vmware.com [10.113.191.58]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 144CDB135B; Mon, 1 Sep 2014 09:12:33 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-013.vmware.com (10.113.191.33) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 1 Sep 2014 09:12:21 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 1 Sep 2014 09:12:20 -0700 Message-ID: <54049AE1.8010703@vmware.com> Date: Mon, 1 Sep 2014 19:12:17 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Tom Lane , Greg Stark CC: Alvaro Herrera , Pg Hackers Subject: Re: On partitioning References: <20140829155607.GF7705@eldon.alvh.no-ip.org> <16957.1409515410@sss.pgh.pa.us> <25793.1409587177@sss.pgh.pa.us> In-Reply-To: <25793.1409587177@sss.pgh.pa.us> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -8.6 (--------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/01/2014 06:59 PM, Tom Lane wrote: > Greg Stark writes: >> On Sun, Aug 31, 2014 at 9:03 PM, Tom Lane wrote: >>> Aside from costing planning time, most likely that would forever prevent >>> us from pushing some types of intelligence about partitioning into the >>> executor. > >> How would it affect this calculus if there were partitioned indexes >> which were created on the overall table and guaranteed to exist on >> each partition that the planner could use -- and then possibly also >> per-partition indexes that might exist in addition to those? > > That doesn't actually fix the planning-time issue at all. Either the > planner considers each partition individually to create a custom plan > for it, or it doesn't. Hmm. Couldn't you plan together all partitions that do have the same indexes? In other words, create a custom plan for each group of partitions, rather than each partition? - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers