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 1lX3Jd-0000MO-8p for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Apr 2021 14:49:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lX3Ja-0000V7-Nd for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Apr 2021 14:49:54 +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 1lX3Ja-0000V0-Fm for pgsql-hackers@lists.postgresql.org; Thu, 15 Apr 2021 14:49:54 +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 1lX3JT-0002ff-CN for pgsql-hackers@lists.postgresql.org; Thu, 15 Apr 2021 14:49:52 +0000 Received: from hnk.local (p2043043-ipbf1801funabasi.chiba.ocn.ne.jp [221.185.194.43]) by oss.nttdata.com (Postfix) with ESMTPSA id D4A946278B; Thu, 15 Apr 2021 23:49:43 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 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: <43f71643-5068-8a77-4bda-005b0ff7bd4f@oss.nttdata.com> <551ed8c1-f531-818b-664a-2cecdab99cd8@oss.nttdata.com> <2209ecd8-0382-cbcb-5717-15da49535237@oss.nttdata.com> <70310892-3572-f143-a692-e9aa4322a914@oss.nttdata.com> From: Fujii Masao Message-ID: Date: Thu, 15 Apr 2021 23:49:43 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 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/14 12:54, Bharath Rupireddy wrote: > IMHO, we can push all the TRUNCATE options (ONLY, RESTRICTED, CASCADE, > RESTART/CONTINUE IDENTITY), because it doesn't have any major > challenge(implementation wise) unlike pushing some clauses in > SELECT/UPDATE/DELETE and we already do this on the master. It doesn't > look good and may confuse users, if we push some options and restrict > others. We should have an explicit note in the documentation saying we > push all these options to the remote server. We can leave it to the > user to write TRUNCATE for foreign tables with the appropriate > options. If somebody complains about a problem that they will face > with this behavior, we can revisit. That's one of the options. But I'm afraid it's hard to drop (revisit) the feature once it has been released. So if there is no explicit use case for that, basically I'd like to drop that before release like we agree to drop unused TRUNCATE_REL_CONTEXT_CASCADING. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION