Re: TRUNCATE on foreign table
Kazutaka Onishi <onishi@heterodb.com>
From: Kazutaka Onishi <onishi@heterodb.com>
To: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>,
Zhihong Yu <zyu@yugabyte.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>,
Kohei KaiGai <kaigai@heterodb.com>
Date: 2021-02-10T17:27:54Z
Lists: pgsql-hackers
That's because using the foreign server is difficult for the user. For example, the user doesn't always have the permission to login to the forein server. In some cases, the foreign table has been created by the administrator that has permission to access the two servers and the user only uses the local server. Then the user has to ask the administrator to run TRUNCATE every time. Furthermore,there are some fdw extensions which don't support SQL. mongo_fdw, redis_fdw, etc... These extensions have been used to provide SQL interfaces to the users. It's hard for the user to run TRUNCATE after learning each database. Anyway, it's more useful if the user can run queries in one place, right? Do you have any concerns?
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