Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE0ub-004bkp-4l for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2024 06:43:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tE0uZ-00CvY3-I1 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2024 06:43:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE0uZ-00CvXv-8k for pgsql-hackers@lists.postgresql.org; Thu, 21 Nov 2024 06:43:31 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE0uW-0033xE-Hp for pgsql-hackers@postgresql.org; Thu, 21 Nov 2024 06:43:30 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 74DF46197F; Thu, 21 Nov 2024 15:43:22 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Nov 2024 15:43:22 +0900 From: torikoshia To: Fujii Masao Cc: Yugo NAGATA , Pgsql Hackers Subject: Re: Add reject_limit option to file_fdw In-Reply-To: <336dd0aa-f91b-4953-b0a0-b87215c571d2@oss.nttdata.com> References: <54747389a562688eab7077b144daff6a@oss.nttdata.com> <2b3ad6d4-e05f-4188-8cfe-1fd9d949a9c9@oss.nttdata.com> <192ede1e4c2b34b853e5ac46f8dee50b@oss.nttdata.com> <20241112145114.ba288defc684699bf8646942@sraoss.co.jp> <2f03bf95556c4c41d6b1659e74b346c7@oss.nttdata.com> <20241113231706.09e5b5ea9640289312835be8@sraoss.co.jp> <336dd0aa-f91b-4953-b0a0-b87215c571d2@oss.nttdata.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: torikoshia@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-11-21 00:43, Fujii Masao wrote: > 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! Thanks a lot! >>> 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. Thanks for the update! Agreed. I think the validator tests related to the on_error option you added are sufficient. As for the other file_fdw options, I'm a bit concerned whether it would be better to add validator tests for cases like when 'encoding' is 'unsupported', but that should be discussed in another thread. > Regards, -- Regards, -- Atsushi Torikoshi Seconded from NTT DATA GROUP CORPORATION to SRA OSS K.K.