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>
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 Developers <pgsql-hackers@lists.postgresql.org>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Subject: Re: TRUNCATE on foreign table
Date: Thu, 15 Apr 2021 23:49:43 +0900
Message-ID: <a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com> (raw)
In-Reply-To: <CALj2ACX7UYyg9tsqqS7akc5eSiwBLevM-ZfX00haFrdZrq2tgg@mail.gmail.com>
References: <CAJuF6cMWDDqU-vn_knZgma+2GMaout68YUgn1uyDnexRhqqM5Q@mail.gmail.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>
	<CAOP8fzaWkX7O3QmKtJ9DEtBfwaR5+OL2KfycnYNrxPC9zEG2QQ@mail.gmail.com>
	<eac9329f-f285-2044-1974-b3d0d0aa5950@oss.nttdata.com>
	<CAOP8fzYgM=bxsDgtnucx4k_QUdUknri4UEdPxr9bkkfqRYoRog@mail.gmail.com>
	<CAOP8fzZf+=RQFmwLRw5s1KKgApuXmYPC76nmUZGck4=e7AJj8Q@mail.gmail.com>
	<2209ecd8-0382-cbcb-5717-15da49535237@oss.nttdata.com>
	<CAOP8fzbCfju6TT4DYqw5KC9tgTN4UzpagJnY3WRXfiR9R58M1Q@mail.gmail.com>
	<CALj2ACVuygqS7rMGHGs-W_JGx6pjdAFitTZuNfWdV2QaBaOc+A@mail.gmail.com>
	<CAOP8fzYbU2g4wFJAcxJkaESWV1NxJL3LYf=jXti-JL3fcvPgxw@mail.gmail.com>
	<70310892-3572-f143-a692-e9aa4322a914@oss.nttdata.com>
	<CALj2ACX7UYyg9tsqqS7akc5eSiwBLevM-ZfX00haFrdZrq2tgg@mail.gmail.com>



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





view thread (117+ messages)  latest in thread

Message-ID: <a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com>
Permalink:  ../a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com/
Also on:    postgresql.org/message-id/a1975489-a32d-dc2b-c117-cd36495d82fa@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, 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: <a1975489-a32d-dc2b-c117-cd36495d82fa@oss.nttdata.com>
  References: <CAJuF6cMWDDqU-vn_knZgma+2GMaout68YUgn1uyDnexRhqqM5Q@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> <CAOP8fzaWkX7O3QmKtJ9DEtBfwaR5+OL2KfycnYNrxPC9zEG2QQ@mail.gmail.com> <eac9329f-f285-2044-1974-b3d0d0aa5950@oss.nttdata.com> <CAOP8fzYgM=bxsDgtnucx4k_QUdUknri4UEdPxr9bkkfqRYoRog@mail.gmail.com> <CAOP8fzZf+=RQFmwLRw5s1KKgApuXmYPC76nmUZGck4=e7AJj8Q@mail.gmail.com> <2209ecd8-0382-cbcb-5717-15da49535237@oss.nttdata.com> <CAOP8fzbCfju6TT4DYqw5KC9tgTN4UzpagJnY3WRXfiR9R58M1Q@mail.gmail.com> <CALj2ACVuygqS7rMGHGs-W_JGx6pjdAFitTZuNfWdV2QaBaOc+A@mail.gmail.com> <CAOP8fzYbU2g4wFJAcxJkaESWV1NxJL3LYf=jXti-JL3fcvPgxw@mail.gmail.com> <70310892-3572-f143-a692-e9aa4322a914@oss.nttdata.com> <CALj2ACX7UYyg9tsqqS7akc5eSiwBLevM-ZfX00haFrdZrq2tgg@mail.gmail.com> <a1975489-a32d-dc2b-c117-cd36495d82fa@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