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 1j3uJn-0003Dv-B0 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2020 04:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3uJl-0000Ui-Ua for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2020 04:17:05 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3uJl-0000Ub-Li for pgsql-hackers@lists.postgresql.org; Tue, 18 Feb 2020 04:17:05 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3uJi-0006NK-Uu for pgsql-hackers@postgresql.org; Tue, 18 Feb 2020 04:17:05 +0000 Received: from hnk.local (p1752128-ipbf1308funabasi.chiba.ocn.ne.jp [123.218.229.128]) by oss.nttdata.com (Postfix) with ESMTPSA id 3062F602E8; Tue, 18 Feb 2020 13:16:57 +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> <6cb06600-94b4-e68d-f835-934fe4eb3fac@oss.nttdata.com> From: Fujii Masao Message-ID: <60c183dc-c1b8-4cb7-4822-61abd9741e8c@oss.nttdata.com> Date: Tue, 18 Feb 2020 13:16:56 +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/17 17:13, Amit Langote wrote: > On Mon, Feb 17, 2020 at 4:59 PM Fujii Masao wrote: >> On 2020/02/14 10:28, Amit Langote wrote: >>> On Thu, Feb 13, 2020 at 8:39 PM Fujii Masao wrote: >>>> 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. > > Oh, I didn't notice that this is the only instance of testing LOCK > TABLE ONLY. I would've expected that the test for: > > 1. checking that ONLY works correctly with LOCK TABLE, and > 2. checking permission works correctly with ONLY > > are separate. Anyway, we can leave that as is. > >>> 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. > > Thank you. Pushed. Thanks! Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters