Add regression test for TRUNCATE on foreign table not supporting TRUNCATE.
authorFujii Masao <fujii@postgresql.org>
Wed, 20 Jul 2022 00:35:14 +0000 (09:35 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 20 Jul 2022 00:35:14 +0000 (09:35 +0900)
commitecc84b916f8f36924e2b3de358045edfc3205e5a
treeab430c8ea32030697eb47b05a42ace0e583ad65a
parent13d83881514856353dc86575eb0fc28132349a60
Add regression test for TRUNCATE on foreign table not supporting TRUNCATE.

file_fdw doesn't support INSERT, UPDATE, DELETE and TRUNCATE.
It has the regression test that confirms that INSERT, UPDATE and DELETE
fail on its foreign table, but not TRUNCATE yet. It's better to
also test TRUNCATE fails on a foreign table not allowing TRUNCATE,
for test coverage. This commit adds that regression test using file_fdw.

Author: Yugo Nagata
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20220630104812.ec1556481452c019874f4ac9@sraoss.co.jp
contrib/file_fdw/expected/file_fdw.out
contrib/file_fdw/sql/file_fdw.sql