Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbGbl-0005Xb-3M for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Apr 2021 05:50:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbGbi-0003He-RH for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Apr 2021 05:50:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbGbi-0003HX-LD for pgsql-hackers@lists.postgresql.org; Tue, 27 Apr 2021 05:50: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 1lbGbf-0000P6-Ho for pgsql-hackers@lists.postgresql.org; Tue, 27 Apr 2021 05:50:01 +0000 Received: from hnk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id 1BE32603BF; Tue, 27 Apr 2021 14:49:55 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at oss.nttdata.com Subject: Re: TRUNCATE on foreign table To: Bharath Rupireddy Cc: Kohei KaiGai , Kazutaka Onishi , Zhihong Yu , Amit Langote , Ibrar Ahmed , PostgreSQL Developers , Ashutosh Bapat References: <70310892-3572-f143-a692-e9aa4322a914@oss.nttdata.com> <2ec345ad-9a7b-a21f-8a1b-04c0537ea9b8@oss.nttdata.com> <94c99273-4b06-1b13-98da-a716e0454cac@oss.nttdata.com> <45bf0b95-b8e8-b1ee-015e-0cb4cf732def@oss.nttdata.com> <9529495b-b5b2-a874-4b84-161c3a0fd2ec@oss.nttdata.com> <32055c4d-fc0e-fb4d-6c31-5a4d084e4fda@oss.nttdata.com> From: Fujii Masao Message-ID: <1937f0f9-1ac6-c05e-a7d4-6cd30ec18be6@oss.nttdata.com> Date: Tue, 27 Apr 2021 14:49:54 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.10.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: Archived-At: Precedence: bulk On 2021/04/26 13:52, Bharath Rupireddy wrote: > On Fri, Apr 23, 2021 at 9:50 PM Fujii Masao wrote: >> Thanks for the review! I fixed this. > > Thanks for the updated patches. > > In docs v4 patch, I think we can combine below two lines into a single line: > + supported by the foreign data wrapper, > see . You mean "supported by the foreign data wrapper "? I was thinking that it's better to separate them because postgres_fdw is just an example of the foreign data wrapper supporting TRUNCATE. This makes me think again; isn't it better to add "for example" or "for instance" into after "data wrapper"? That is, TRUNCATE can be used for foreign tables if supported by the foreign data wrapper, for instance, see . > Other than the above minor change, both patches look good to me, I > have no further comments. Thanks! I pushed the patch truncate_foreign_table_dont_pass_only_clause_xx.patch, at first. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION