Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZTKN-0006gY-N8 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Mar 2023 09:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pZTKM-00068y-Ig for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Mar 2023 09:09:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZTKM-0004Yv-8K for pgsql-hackers@lists.postgresql.org; Tue, 07 Mar 2023 09:09:46 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZTKG-0002ba-Fm for pgsql-hackers@postgresql.org; Tue, 07 Mar 2023 09:09:41 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id DFF6F2F9212D for ; Tue, 7 Mar 2023 10:09:37 +0100 (CET) Received: from s981.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 4811A2E27DDC; Tue, 7 Mar 2023 10:09:24 +0100 (CET) Received: from s898.loopia.se (unknown [172.22.191.6]) by s981.loopia.se (Postfix) with ESMTP id 415A722B1766; Tue, 7 Mar 2023 10:09:24 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s934.loopia.se ([172.22.191.6]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with UTF8LMTP id 9dzixB4zLGGF; Tue, 7 Mar 2023 10:09:23 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id 8C63C7CEA44; Tue, 7 Mar 2023 10:09:23 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features) From: Daniel Gustafsson In-Reply-To: Date: Tue, 7 Mar 2023 10:09:23 +0100 Cc: torikoshia , PostgreSQL Hackers , Andres Freund , Danil Anisimow , Nikita Malakhov , a.lepikhov@postgrespro.ru, tgl@sss.pgh.pa.us Content-Transfer-Encoding: quoted-printable Message-Id: References: <686e46d6718f9535bc39fac7cad7408b@oss.nttdata.com> <769423519e16d18a1e7611c6931da58b@oss.nttdata.com> <20230205233723.xw5z5zmeyc57ezq3@alap3.anarazel.de> <2587470.1675660337@sss.pgh.pa.us> <483E1B59-4A80-450B-8685-7CC12762FD5A@anarazel.de> <2592557.1675663234@sss.pgh.pa.us> <39143e83571d59dfc04c75707fa0ea5a@oss.nttdata.com> <0DE0602F-CC12-40ED-B259-3AB91FB02C3B@yesql.se> <8ad8492ff9fae3481d87c7aab4e0aed0@oss.nttdata.com> To: Damir Belyalov X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 7 Mar 2023, at 09:35, Damir Belyalov wrote: > I felt just logging "Error: %ld" would make people wonder the meaning = of=20 > the %ld. Logging something like ""Error: %ld data type errors were=20 > found" might be clearer. > =20 > Thanks. For more clearance change the message to: "Errors were found: = %".=20 I'm not convinced that this adds enough clarity to assist the user. We = also shouldn't use "error" in a WARNING log since the user has explicitly = asked to skip rows on error, so it's not an error per se. How about something = like: ereport(WARNING, (errmsg("%ld rows were skipped due to data type = incompatibility", cstate->ignored_errors), errhint("Skipped rows can be inspected in the database log = for reprocessing."))); -- Daniel Gustafsson