pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Kohei KaiGai <kaigai@heterodb.com>
Cc: Kazutaka Onishi <onishi@heterodb.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Subject: Re: TRUNCATE on foreign table
Date: Tue, 13 Apr 2021 12:38:35 +0900
Message-ID: <bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com> (raw)
In-Reply-To: <CALj2ACUt74VnVA_7dkEbo00eJQah9GObvomp-_fJr2NM=kfd0g@mail.gmail.com>
References: <CAOP8fzbDMAS78vD=J183SRXzUJfJgPqudgab++FNRDAS3Eq93w@mail.gmail.com>
	<66e78949-4747-941c-7966-60d9cd1aad99@oss.nttdata.com>
	<CAOP8fzajfK4vUe0s0YAOehjaFxvcecdvv2JdzeR6mZ-V3fLVbw@mail.gmail.com>
	<d5df2e94-f643-6409-5cd4-fa1c2ebd41fa@oss.nttdata.com>
	<CAOP8fzbKh1V_n-huDmzxQRsMRZ5qNb+2wo5khKOrweGgx6pBrg@mail.gmail.com>
	<43f71643-5068-8a77-4bda-005b0ff7bd4f@oss.nttdata.com>
	<CAOP8fzYY=xkj_ke3h-cHO08S6WKfcja0uNPmGjNYo50rm66+6Q@mail.gmail.com>
	<551ed8c1-f531-818b-664a-2cecdab99cd8@oss.nttdata.com>
	<20210411041658.GB14564@telsasoft.com>
	<CALj2ACU2ZF2SLuU4UCXAPzCyb+=Anhtgp3VhWmKPHAGC3yFeHg@mail.gmail.com>
	<20210413005726.GK20530@telsasoft.com>
	<CALj2ACUt74VnVA_7dkEbo00eJQah9GObvomp-_fJr2NM=kfd0g@mail.gmail.com>



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.

+     <structname>Relation</structname> data structures for each
+     foreign tables to be truncated.

"foreign tables" should be "foreign table" because it follows "each"?

+    <para>
+     <literal>behavior</literal> is either
+     <literal>DROP_RESTRICT</literal> or <literal>DROP_CASCADE</literal>.
+     <literal>DROP_CASCADE</literal> indicates that the
+     <literal>CASCADE</literal> option was specified in the original
       <command>TRUNCATE</command> command.

Why did you remove the description for DROP_RESTRICT?

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (117+ messages)  latest in thread

Message-ID: <bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com>
Permalink:  ../bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com/
Also on:    postgresql.org/message-id/bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, bharath.rupireddyforpostgres@gmail.com, pryzby@telsasoft.com, kaigai@heterodb.com, onishi@heterodb.com, zyu@yugabyte.com, amitlangote09@gmail.com, ibrar.ahmad@gmail.com, ashutosh.bapat.oss@gmail.com
  Subject: Re: TRUNCATE on foreign table
  In-Reply-To: <bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com>
  References: <CAOP8fzbDMAS78vD=J183SRXzUJfJgPqudgab++FNRDAS3Eq93w@mail.gmail.com> <66e78949-4747-941c-7966-60d9cd1aad99@oss.nttdata.com> <CAOP8fzajfK4vUe0s0YAOehjaFxvcecdvv2JdzeR6mZ-V3fLVbw@mail.gmail.com> <d5df2e94-f643-6409-5cd4-fa1c2ebd41fa@oss.nttdata.com> <CAOP8fzbKh1V_n-huDmzxQRsMRZ5qNb+2wo5khKOrweGgx6pBrg@mail.gmail.com> <43f71643-5068-8a77-4bda-005b0ff7bd4f@oss.nttdata.com> <CAOP8fzYY=xkj_ke3h-cHO08S6WKfcja0uNPmGjNYo50rm66+6Q@mail.gmail.com> <551ed8c1-f531-818b-664a-2cecdab99cd8@oss.nttdata.com> <20210411041658.GB14564@telsasoft.com> <CALj2ACU2ZF2SLuU4UCXAPzCyb+=Anhtgp3VhWmKPHAGC3yFeHg@mail.gmail.com> <20210413005726.GK20530@telsasoft.com> <CALj2ACUt74VnVA_7dkEbo00eJQah9GObvomp-_fJr2NM=kfd0g@mail.gmail.com> <bf469e1b-d500-9f0d-36fc-e9515594f3bf@oss.nttdata.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox