Re: TRUNCATE on foreign table
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Kohei KaiGai <kaigai@heterodb.com>, Kazutaka Onishi
<onishi@heterodb.com>, Zhihong Yu <zyu@yugabyte.com>,
Amit Langote <amitlangote09@gmail.com>, Ibrar Ahmed <ibrar.ahmad@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>,
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Date: 2021-04-15T14:49:43Z
Lists: pgsql-hackers
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
Commits
-
doc: Review for "Allow TRUNCATE command to truncate foreign tables".
- 0c8f40863acb 14.0 landed
-
Don't pass "ONLY" options specified in TRUNCATE to foreign data wrapper.
- 8e9ea08bae93 14.0 landed
-
Support tab-complete for TRUNCATE on foreign tables.
- 81e094bdfdd6 14.0 landed
-
Allow TRUNCATE command to truncate foreign tables.
- 8ff1c94649f5 14.0 landed
-
Add support for asynchronous execution.
- 27e1f14563cf 14.0 cited