Re: Add a test for "cannot truncate foreign table"

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Add a test for "cannot truncate foreign table"
Дата
Msg-id ebfc16eb-10b5-30b3-152f-f58bedbf5a94@oss.nttdata.com
обсуждение исходный текст
Ответ на Add a test for "cannot truncate foreign table"  (Yugo NAGATA <nagata@sraoss.co.jp>)
Ответы Re: Add a test for "cannot truncate foreign table"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On 2022/06/30 10:48, Yugo NAGATA wrote:
> Hello,
> 
> During checking regression tests of TRUNCATE on foreign
> tables for other patch [1], I found that there is no test
> for foreign tables that don't support TRUNCATE.
> 
> When a foreign table has handler but doesn't support TRUNCATE,
> an error "cannot truncate foreign table xxx" occurs. So, what
> about adding a test this message output? We can add this test
> for file_fdw because it is one of the such foreign data wrappers.
> 
> I attached a patch.

Thanks for the patch! It looks good to me.
I changed the status of this patch to ready-for-committer,
and will commit it barring any objeciton.

Regards,

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Use outerPlanState macro instead of referring to leffttree
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add a test for "cannot truncate foreign table"