Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3bJr-0000N0-GL for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Feb 2020 07:59:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3bJq-0007uC-5S for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Feb 2020 07:59:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3bJp-0007u5-Oz for pgsql-hackers@lists.postgresql.org; Mon, 17 Feb 2020 07:59:53 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3bJm-0002Ii-8l for pgsql-hackers@postgresql.org; Mon, 17 Feb 2020 07:59:51 +0000 Received: from hnk.local (sp49-97-93-217.msc.spmode.ne.jp [49.97.93.217]) by oss.nttdata.com (Postfix) with ESMTPSA id E8E366050F; Mon, 17 Feb 2020 16:59:46 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.101.5 at oss.nttdata.com Subject: Re: table partitioning and access privileges To: Amit Langote Cc: Tom Lane , Fujii Masao , PostgreSQL-development References: <3546b691-b744-12c9-fd2f-7dc31c3c030e@oss.nttdata.com> <21015.1580400165@sss.pgh.pa.us> <79ee190f-8219-6091-d2e5-ffae1bcf8d6e@oss.nttdata.com> <0e521cac-e00b-bf0f-4a11-5f7c2366a7f5@oss.nttdata.com> From: Fujii Masao Message-ID: <6cb06600-94b4-e68d-f835-934fe4eb3fac@oss.nttdata.com> Date: Mon, 17 Feb 2020 16:59:46 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/02/14 10:28, Amit Langote wrote: > On Thu, Feb 13, 2020 at 8:39 PM Fujii Masao wrote: >> On 2020/02/07 10:39, Amit Langote wrote: >>> On Fri, Feb 7, 2020 at 1:16 AM Fujii Masao wrote: >>>> Yes, so I will review your patch getting rid of >>>> LOCK TABLE exception. >>> >>> Attached updated patch. >> >> Thanks! This patch basically looks good to me except >> the following minor comment. >> >> ROLLBACK; >> -BEGIN; >> -LOCK TABLE ONLY lock_tbl1; >> -ROLLBACK; >> RESET ROLE; >> >> I think that there is no strong reason why these SQLs need to be >> removed. We can verify that even "LOCK TABLE ONLY" command works >> expectedly on the inherited tables by keeping those SQLs in the >> regression test. So what about not removing these SQLs? > > Hmm, that test becomes meaningless with the behavior change we are > introducing, but I am okay with not removing it. Only this regression test seems to verify LOCK TABLE ONLY command. So if we remove this, I'm afraid that the test coverage would be reduced. > However, I added a test showing that locking child table directly doesn't work. > > Attached updated patch. Thanks for updating the patch! Barring any objection, I will commit the patch. Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters