Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSo0M-0001ui-3Y for pgsql-general@arkaria.postgresql.org; Tue, 12 Jun 2018 18:26:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSo0J-0007Xm-Rf for pgsql-general@arkaria.postgresql.org; Tue, 12 Jun 2018 18:26:51 +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.89) (envelope-from ) id 1fSo0H-0007Xb-Nb for pgsql-general@lists.postgresql.org; Tue, 12 Jun 2018 18:26:51 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSo0B-0005Tq-S5 for pgsql-general@postgresql.org; Tue, 12 Jun 2018 18:26:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4AFE621949; Tue, 12 Jun 2018 14:26:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 12 Jun 2018 14:26:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=vQd7b0/uQ0RB5ocmskUbdFxY20kYU OaY5juzf6NOdv8=; b=uvj+RuJFy1EpYUiPRCsd1ZZCfK4qQh3fQVkm5bvObOmLu sZCrBJoAkU0zSbBMSFg6qrma7PKApYNMNz40SVi+YpzcHlDB7XFZEWaApjGze2H6 Sdo/8VjPJRP7vxJd5vAq5lsD535y7XH983WXmcyhEWNwEK3cDPUffcLDzK+FTtmQ tZ3qY2r6sN51yRkE3RlaDqRYo+0XL5mn+N62v/S5ahw2sSvIXDBxUU04sJ/y+5Iw PrDxXzue/7/0wy1/6vKf5funIkkPROiQGthBnmjKbFqbCHl+PbyhjRx52aSzIAAy 1YKf65ufIo2x7ziMcPRTA1Z73DrYg6uRcQXymXN2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vQd7b0 /uQ0RB5ocmskUbdFxY20kYUOaY5juzf6NOdv8=; b=TwYLRpRwhyoClUsqq37Urt D+EoGifRg3shpoW3IGVsGeD7CWeevIEEngW26tDkkp3LskXTHcGhA29/CcdfLa8I ovGF5btnEPFz6AR6i9TpTmbp1c444eUCE+vRKxm98au5QMYXtmJHkysO2t+j6QhQ 505/SMsQeWc8SzLHjzBtd5teDSyyYZyIX0hEVWyaovBwBbDUdvBiT+p2o3uvhIga 1BOZHScSU3HV6PoUrgNzT8NJpKNY4YU8uSy85FmYbqCavMjts4u1BIulwQfYUgvF 67bhO+1xaBQDKhti+LXUVFp4ZRMGyOwMKqoTB6kfl7EuOZ/y5EpixFQudsf0QUpQ == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.159.209]) by mail.messagingengine.com (Postfix) with ESMTPA id 7E79DE4923; Tue, 12 Jun 2018 14:26:41 -0400 (EDT) Subject: Re: Transparent partitioning To: =?UTF-8?Q?Br=c3=a1ulio_Bhavamitra?= , pgsql-general References: From: Adrian Klaver Message-ID: Date: Tue, 12 Jun 2018 11:26:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/12/2018 11:12 AM, BrĂ¡ulio Bhavamitra wrote: > Hi postgresql developers, > > Are there any plans to have transparent partitioning through clustered > indexes in such a way that a table is partitioned in the backend > according to a clustering index without any further user configuration? Something like this?: https://www.postgresql.org/docs/10/static/sql-createtable.html "PARTITION BY { RANGE | LIST } ( { column_name | ( expression ) } [ opclass ] [, ...] ) The optional PARTITION BY clause specifies a strategy of partitioning the table. The table thus created is called a partitioned table. The parenthesized list of columns or expressions forms the partition key for the table. When using range partitioning, the partition key can include multiple columns or expressions (up to 32, but this limit can be altered when building PostgreSQL), but for list partitioning, the partition key must consist of a single column or expression. If no B-tree operator class is specified when creating a partitioned table, the default B-tree operator class for the datatype will be used. If there is none, an error will be reported. A partitioned table is divided into sub-tables (called partitions), which are created using separate CREATE TABLE commands. The partitioned table is itself empty. A data row inserted into the table is routed to a partition based on the value of columns or expressions in the partition key. If no existing partition matches the values in the new row, an error will be reported. Partitioned tables do not support UNIQUE, PRIMARY KEY, EXCLUDE, or FOREIGN KEY constraints; however, you can define these constraints on individual partitions. " > > Best regards, > Braulio Oliveira -- Adrian Klaver adrian.klaver@aklaver.com