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 1lW9t0-0000lC-R7 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Apr 2021 03:38:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lW9sy-0004Sl-31 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Apr 2021 03:38:44 +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 1lW9sx-0004Sd-RR for pgsql-hackers@lists.postgresql.org; Tue, 13 Apr 2021 03:38:43 +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 1lW9su-0000XC-Es for pgsql-hackers@lists.postgresql.org; Tue, 13 Apr 2021 03:38:42 +0000 Received: from hnk.local (an054019.ppp.asahi-net.or.jp [61.87.54.19]) by oss.nttdata.com (Postfix) with ESMTPSA id 3570F628EF; Tue, 13 Apr 2021 12:38:36 +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 , Justin Pryzby Cc: Kohei KaiGai , Kazutaka Onishi , Zhihong Yu , Amit Langote , Ibrar Ahmed , PostgreSQL Hackers , Ashutosh Bapat References: <66e78949-4747-941c-7966-60d9cd1aad99@oss.nttdata.com> <43f71643-5068-8a77-4bda-005b0ff7bd4f@oss.nttdata.com> <551ed8c1-f531-818b-664a-2cecdab99cd8@oss.nttdata.com> <20210411041658.GB14564@telsasoft.com> <20210413005726.GK20530@telsasoft.com> From: Fujii Masao Message-ID: Date: Tue, 13 Apr 2021 12:38:35 +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/13 10:21, Bharath Rupireddy wrote: > I agree to convert to bits and pass it as int value which is > extensible i.e. we can pass more extra parameters across if required. Looks good to me. > Also I'm not in favour of removing relids_extra altogether, we might > need this to send some info in future. > > Both 0001 and 0002(along with the new phrasings) look good to me. Thanks for updating the patches! One question is; "CONTEXT" of "TRUNCATE_REL_CONTEXT_ONLY" is required? If not, I'm tempted to shorten the name to "TRUNCATE_REL_ONLY" or something. + Relation data structures for each + foreign tables to be truncated. "foreign tables" should be "foreign table" because it follows "each"? + + behavior is either + DROP_RESTRICT or DROP_CASCADE. + DROP_CASCADE indicates that the + CASCADE option was specified in the original TRUNCATE command. Why did you remove the description for DROP_RESTRICT? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION