Re: Add reject_limit option to file_fdw

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: torikoshia <torikoshia(at)oss(dot)nttdata(dot)com>, Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add reject_limit option to file_fdw
Date: 2024-11-20 15:43:46
Message-ID: 336dd0aa-f91b-4953-b0a0-b87215c571d2@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2024/11/19 21:40, torikoshia wrote:
>> These messages may be unexpected for some users because the documentation of
>> fild_fdw does not explicitly describe that file_fdw uses COPY internally.
>> (I can find several wordings like "as COPY", though.)
>> However, since the current file_fdw already has such messages, I came to think
>> making the messages on "reject_limit" consistent with COPY is reasonable.
>> I mean, the previous version of the message seems fine.
>
> Agreed. Thanks for your investigation.

I've pushed the 0001 patch. Thanks!

>> As another comment, do we need to add validator test for on_error and
>> reject_limit as similar to other options?
>
> That might be better.
> Added some queries which had wrong options to cause errors.
>
> I was unsure whether to add it to "validator test" section or "on_error, log_verbosity and reject_limit tests" section, but I chose "validator test" as I believe it makes things clearer.
>
> Added 0002 patch since some of the tests are not related to reject_limit but just on_error.

How about adding validator tests for log_verbosity and reject_limit=0,
similar to the tests in the copy2.sql regression test? I've added those
two tests, and the latest version of the patch is attached.

Regards,

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

Attachment Content-Type Size
v6-0001-file_fdw-Add-regression-tests-for-ON_ERROR-and-ot.patch text/plain 2.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Sabino Mullane 2024-11-20 15:50:36 Re: Proposals for EXPLAIN: rename ANALYZE to EXECUTE and extend VERBOSE
Previous Message Bruce Momjian 2024-11-20 15:02:52 Re: Remove useless casts to (void *)