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 1rF5sR-008KEN-V6 for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Dec 2023 05:09:15 +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 1rF5sQ-006DKy-Cw for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Dec 2023 05:09:14 +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 1rF5sQ-006DKi-3N for pgsql-hackers@lists.postgresql.org; Mon, 18 Dec 2023 05:09:14 +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 1rF5sL-00CZ38-79 for pgsql-hackers@lists.postgresql.org; Mon, 18 Dec 2023 05:09:12 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 31ECE6088D; Mon, 18 Dec 2023 14:09:03 +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: Mon, 18 Dec 2023 14:09:03 +0900 From: torikoshia To: jian he Cc: Masahiko Sawada , Alena Rybakina , Damir Belyalov , zhihuifan1213@163.com, Tom Lane , Daniel Gustafsson , PostgreSQL Hackers , Andres Freund , anisimow.d@gmail.com, HukuToc@gmail.com, pgsql-hackers@lists.postgresql.org, Andrei Lepikhov Subject: Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) In-Reply-To: References: <483E1B59-4A80-450B-8685-7CC12762FD5A@anarazel.de> <43399b33fe573f0548410893f41f84b6@oss.nttdata.com> <8de9d5e1-2f81-ee2e-ece4-b1a6ede1f285@yandex.ru> <58fa3b63e88ffd0a09273e38aec0661e@oss.nttdat!> <752672.1699474336@sss.pgh.pa.us> <878r77mtlt.fsf@163.com> <760ee97a-e336-4d7b-9477-9d9e99370097@postgrespro.ru> <23a89ba0-b5d5-419c-b798-cd2c59490148@yandex.ru> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <1264ee0c8b68d57cb4035a68fdb0eba2@oss.nttdata.com> X-Sender: torikoshia@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, > save the error metadata to system catalogs would be more expensive, > please see below explanation. > I have no knowledge of publications. > but i feel there is a feature request: publication FOR ALL TABLES > exclude regex_pattern. > Anyway, that would be another topic. I think saving error metadata to system catalog is not a good idea, too. And I believe Sawada-san just pointed out missing features and did not suggested that we use system catalog. > I don't think "specify the maximum number of errors to tolerate > before raising an ERROR." is very useful.... That may be so. I imagine it's useful in some use case since some loading tools have such options. Anyway I agree it's not necessary for initial patch as mentioned in [1]. > I suppose we can specify an ERRORFILE directory. similar > implementation [2], demo in [3] > it will generate 2 files, one file shows the malform line content as > is, another file shows the error info. That may be a good option when considering "(2) logging errors to somewhere". What do you think about the proposal to develop these features in incrementally? On 2023-12-15 05:48, Masahiko Sawada wrote: > So I'm thinking we may be able to implement this > feature incrementally. The first step would be something like an > option to ignore all errors or an option to specify the maximum number > of errors to tolerate before raising an ERROR. The second step would > be to support logging destinations such as server logs and tables. [1] https://www.postgresql.org/message-id/752672.1699474336%40sss.pgh.pa.us -- Regards, -- Atsushi Torikoshi NTT DATA Group Corporation