Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XOg4w-0005mc-HO for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2014 04:52:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XOg4v-0000cI-PT for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2014 04:52:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XOg4u-0000by-Im for pgsql-hackers@postgresql.org; Tue, 02 Sep 2014 04:52:24 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XOg4m-0004kO-Gl for pgsql-hackers@postgresql.org; Tue, 02 Sep 2014 04:52:23 +0000 Received: from ayaki.localdomain (106-68-143-100.dyn.iinet.net.au [106.68.143.100]) by mrelayeu.kundenserver.de (node=mreue007) with ESMTP (Nemesis) id 0LqJdN-1Y29gf2K5R-00e5ZF; Tue, 02 Sep 2014 06:52:11 +0200 Message-ID: <54054CF3.4040205@2ndquadrant.com> Date: Tue, 02 Sep 2014 12:52:03 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Andres Freund , Hannu Krosing CC: Tom Lane , Alvaro Herrera , Greg Stark , Pg Hackers Subject: Re: On partitioning References: <20140829155607.GF7705@eldon.alvh.no-ip.org> <21166.1409331142@sss.pgh.pa.us> <20140829171228.GG7705@eldon.alvh.no-ip.org> <21834.1409332516@sss.pgh.pa.us> <5400C280.8070305@2ndQuadrant.com> <20140901155225.GJ20990@awork2.anarazel.de> In-Reply-To: <20140901155225.GJ20990@awork2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:pUdTRTHfXZr456boOgESqfuvls56LACN2k8DpQZqMN+ 71+kNA6IUu1NxPAxCS+dIVUA1vwzsUdTNOqkPRihpKe5VBVg4m OhmBBSKSKZVx0rFSi/YYPZ4aEkz13uHwGFCay8qKsF36ad1xZT WujwDRIDyMV3/mEWPAAX6EmNG7oejMUeDZhKWCQF7aDCkHpTxF 9k9VfWOPAE+pATJVqwv7vLpOk2ZJhJyQ5NoerjHdhA4wKIwkPb L99fksloZ5pX9ZTHZdLDkUkXc80HvVHrY2zHWrIzEorcwUdfxz 2h82d85Z1+LctrE6Sw4UZy20SzTaSKy82XYH6GyC5LOryZXdEx 97qXUX8iMgOuQYTldoPJWiUnm8eSArpqa+Afo6Yow X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.7 (--) 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 11:52 PM, Andres Freund wrote: > I personally think that implementing cross partition indexes has a low > enough cost/benefit ratio that I doubt it's wise to tackle it anytime > soon. UNIQUE constraints on partitioned tables (and thus foreign key constraints pointing to partitioned tables) are a pretty big limitation at the moment. That said, the planner may well be able to use the greater knowledge of the partitioned table structure to do this implictly, as it knows that a unique index on the partition is also implicitly unique across partitions on the partitioning key. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers