Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSfH7-0005L0-6Q for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Aug 2015 05:54:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSfH6-0005ej-KF for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Aug 2015 05:54:00 +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) (envelope-from ) id 1ZSfH5-0005ec-SW for pgsql-hackers@postgresql.org; Fri, 21 Aug 2015 05:54:00 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZSfGy-0004B9-0Q for pgsql-hackers@postgresql.org; Fri, 21 Aug 2015 05:53:58 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id t7L5rejk009392; Fri, 21 Aug 2015 14:53:40 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 44D775F623; Fri, 21 Aug 2015 14:53:40 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 2CEB25F612; Fri, 21 Aug 2015 14:53:40 +0900 (JST) Received: from [127.0.0.1] ([129.60.241.61]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id t7L5rdC2005454; Fri, 21 Aug 2015 14:53:40 +0900 Subject: Re: Declarative partitioning To: David Fetter References: <55D3093C.5010800@lab.ntt.co.jp> <55D53885.7070608@lab.ntt.co.jp> <20150820212700.GC8691@fetter.org> Cc: Simon Riggs , Pg Hackers From: Amit Langote Message-ID: <55D6BC88.4010101@lab.ntt.co.jp> Date: Fri, 21 Aug 2015 14:52:08 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150820212700.GC8691@fetter.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Pg-Spam-Score: -3.2 (---) 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 2015-08-21 AM 06:27, David Fetter wrote: >> By the last sentence, do you mean only UPDATEs to the partition key that >> cause rows to jump partitions or simply any UPDATEs to the partition key? > > I don't know what Simon had in mind, but it seems to me that we have > the following in descending order of convenience to users, and I > presume, descending order of difficulty of implementation: > > 1. Updates propagate transparently, moving rows between partitions if needed. > > 2. Updates fail only if the change to a partition key would cause the > row to have to move to another partition. > > 3. All updates to the partition key fail. > I was thinking I'd implement 2. There was some discussion last year[1] about how 1 could be realized. Thanks, Amit [1] http://www.postgresql.org/message-id/20140829172216.GF10109@awork2.anarazel.de -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers