Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSTlJ-0003X0-Ap for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 17:36:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSTlI-0002Ha-Pn for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2015 17:36:24 +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.84) (envelope-from ) id 1ZSTlI-0002HT-4l for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 17:36:24 +0000 Received: from mx-out.zmailcloud.com ([192.198.85.98] helo=mx-out-1.zmailcloud.com) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZSTlD-0008Vy-VA for pgsql-hackers@postgresql.org; Thu, 20 Aug 2015 17:36:22 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id DF67B56514D; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id D49CB602B6; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vMgIiTipWd9a; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id B231C602C3; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 9BA1A602BE; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ePu0zL18fEN9; Thu, 20 Aug 2015 12:36:13 -0500 (CDT) Received: from [172.47.23.104] (50-0-190-244.dsl.dynamic.fusionbroadband.com [50.0.190.244]) by smtp-out-2.01.com (Postfix) with ESMTPSA id 18831602B6; Thu, 20 Aug 2015 12:36:12 -0500 (CDT) Message-ID: <55D6100B.60300@agliodbs.com> Date: Thu, 20 Aug 2015 10:36:11 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: David Fetter , Amit Langote CC: Pg Hackers Subject: Re: Declarative partitioning References: <55D3093C.5010800@lab.ntt.co.jp> <20150818134323.GC18054@fetter.org> <55D4309F.8030601@lab.ntt.co.jp> <20150819125239.GE11258@fetter.org> <55D5A4C0.4040900@lab.ntt.co.jp> <20150820131902.GB8691@fetter.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 08/20/2015 06:19 AM, David Fetter wrote: > On Thu, Aug 20, 2015 at 06:58:24PM +0900, Amit Langote wrote: >> Do you mean ATTACH and DETACH, if they require access exclusive lock on >> the parent, should not be in the first cut? Or am I misreading? > > Sorry I was unclear. > > ATTACH and DETACH should be in the first cut even if they require an > access exclusive lock. > > Cheers, > David. I don't see a way for them to *ever* not require an access exclusive lock. We could eventually implement: DETACH PARTITION CONCURRENTLY ... but that's the only way I can see around it. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers