Re:Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row
| От | Yi Ding |
|---|---|
| Тема | Re:Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row |
| Дата | |
| Msg-id | 5e6ae3c1.48b2.19ce5bfea42.Coremail.dingyi_yale@163.com обсуждение исходный текст |
| Ответ на | Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row (Fujii Masao <masao.fujii@gmail.com>) |
| Ответы |
Re: Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row
|
| Список | pgsql-hackers |
At 2026-03-13 10:57:13, "Fujii Masao" <masao.fujii@gmail.com> wrote: >On Wed, Mar 4, 2026 at 10:25 PM Fujii Masao <masao.fujii@gmail.com> wrote: >> >> On Tue, Mar 3, 2026 at 3:38 PM Peter Eisentraut <peter@eisentraut.org> wrote: >> > Thanks, committed. >> >> Thanks for committing the patch! >> >> With this change, ON_ERROR = 'set_null' can now be used with foreign tables >> backed by file_fdw. However, unlike ON_ERROR = 'ignore', there is currently >> no regression test covering this behavior in file_fdw. >> >> How about adding a regression test to ensure that file_fdw works correctly >> with ON_ERROR = 'set_null', and to improve test coverage? Patch attached. > >Barring any objections, I will commit the patch. > >Regards, > >-- >Fujii Masao>The new test added in v1 makes sense to me. A small suggestion is that to verify if a field is really null, we can do: ALTER FOREIGN TABLE agg_bad OPTIONS (ADD on_error 'set_null'); SELECT a, b IS NULL FROM agg_bad;Regards,Ding Yi
В списке pgsql-hackers по дате отправления: