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 1j2Cqi-0005T3-FK for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 11:40:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j2Cqh-0003Zn-A1 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 11:40:03 +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 1j2Cqg-0003Zg-Nr for pgsql-hackers@lists.postgresql.org; Thu, 13 Feb 2020 11:40:02 +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 1j2Cqe-0001s9-1C for pgsql-hackers@postgresql.org; Thu, 13 Feb 2020 11:40:01 +0000 Received: from hnk.local (sp49-97-94-18.msc.spmode.ne.jp [49.97.94.18]) by oss.nttdata.com (Postfix) with ESMTPSA id 8A374601C2; Thu, 13 Feb 2020 20:39:55 +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: <6218.1577388354@sss.pgh.pa.us> <3546b691-b744-12c9-fd2f-7dc31c3c030e@oss.nttdata.com> <21015.1580400165@sss.pgh.pa.us> <79ee190f-8219-6091-d2e5-ffae1bcf8d6e@oss.nttdata.com> From: Fujii Masao Message-ID: <0e521cac-e00b-bf0f-4a11-5f7c2366a7f5@oss.nttdata.com> Date: Thu, 13 Feb 2020 20:39:54 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 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/07 10:39, Amit Langote wrote: > On Fri, Feb 7, 2020 at 1:16 AM Fujii Masao wrote: >> On 2020/02/03 14:26, Amit Langote wrote: >>> On Mon, Feb 3, 2020 at 2:07 PM Fujii Masao wrote: >>>> On 2020/02/03 11:05, Amit Langote wrote: >>>>> Okay. How about the attached? >>>> >>>> Thanks for the patches! You added the note just after the description >>>> about row level security on inherited table, but isn't it better to >>>> add it before that? Attached patch does that. Thought? >>> >>> Yeah, that might be a better flow for that paragraph. >> >> Pushed! Thanks! > > Thank you. > >>>>> Maybe, we should also note the LOCK TABLE exception? >>>> >>>> Yes. >>> >>> Note that, unlike TRUNCATE, LOCK TABLE exception exists in HEAD too, >>> but maybe you're aware of that. >> >> 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? Regards, -- Fujii Masao NTT DATA CORPORATION Advanced Platform Technology Group Research and Development Headquarters