Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XNQf2-0002YI-AL for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Aug 2014 18:12:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XNQf1-0002OC-Qj for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Aug 2014 18:12:31 +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 1XNQf0-0002Nv-5X for pgsql-hackers@postgresql.org; Fri, 29 Aug 2014 18:12:30 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XNQew-00025m-RW for pgsql-hackers@postgresql.org; Fri, 29 Aug 2014 18:12:28 +0000 Received: from [192.168.1.102] (62.175.246.114.static.riosat.com [62.175.246.114]) by mrelayeu.kundenserver.de (node=mreue001) with ESMTP (Nemesis) id 0MXzB1-1Xu8dp3gON-00Wna6; Fri, 29 Aug 2014 20:12:19 +0200 Message-ID: <5400C280.8070305@2ndQuadrant.com> Date: Fri, 29 Aug 2014 20:12:16 +0200 From: Hannu Krosing Organization: 2ndQuadrant Nordic =?windows-1252?Q?O=DC?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Tom Lane , Alvaro Herrera CC: 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> In-Reply-To: <21834.1409332516@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:yM4b52e6c8LzTIB/ANAAt2vz5JZtgZd5M1WaLpjsDp/ /t53MnBrEA6sBFVbJhyWgXW+7qunIcMhh+6nHr0hxmV+54w/la i/t47p0sKwL1yBW6r+Ej8jlGZxVnIlEenjvPtdGSflFrcSjONv AZYRJroprZybn3ZqAxcQ1zlntAhk0leHA9Vyutq/n4RUU2zql7 GV+JClUl/Rw/A9AellMu4sZ4mZutmWnzktaYZMVrSvqhxgJpyM P5Odz63bcuqMexdLSA62lMxXjGmSyAzuygYN53gzhwLNgPihIv oMFdoFFsEH3iubJxBv6pvuunm41ZuzyKj3DtbHkEF1D7jP5sOX CtpQ7MjGTxWarm1NrNkc8NGt0qz4SuWltrggE02xo X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.0 (--) 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 08/29/2014 07:15 PM, Tom Lane wrote: > Alvaro Herrera writes: >> Tom Lane wrote: >>> One other interesting thought that occurs to me: are we going to support >>> UPDATEs that cause a row to belong to a different partition? If so, how >>> are we going to handle the update chain links? >> Bah, I didn't mention it? My current thinking is that it would be >> disallowed; if you have chosen your partitioning key well enough it >> shouldn't be necessary. As a workaround you can always DELETE/INSERT. >> Maybe we can allow it later, but for a first cut this seems more than >> good enough. > Hm. I certainly agree that it's a case that could be disallowed for a > first cut, but it'd be nice to have some clue about how we might allow it > eventually. There needs to be some structure that is specific to partitions and not multiple plain tables which would then be used for both update chains and cross-partition indexes (as you seem to imply by jumping from indexes to update chains a few posts back). It would need to replace plain tid (pagenr, tupnr) with triple of (partid, pagenr, tupnr). Cross-partition indexes are especially needed if we want to allow putting UNIQUE constraints on non-partition-key columns. Cheers -- Hannu Krosing PostgreSQL Consultant Performance, Scalability and High Availability 2ndQuadrant Nordic OÜ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers