Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZq7T-0006pD-Tt for pgsql-committers@arkaria.postgresql.org; Thu, 20 Dec 2018 04:39:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZq7S-0002Kt-0e for pgsql-committers@arkaria.postgresql.org; Thu, 20 Dec 2018 04:39:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZq7R-0002Kd-Ny for pgsql-committers@lists.postgresql.org; Thu, 20 Dec 2018 04:39:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZq7L-0007dV-4F for pgsql-committers@lists.postgresql.org; Thu, 20 Dec 2018 04:39:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wBK4dNKq022054; Wed, 19 Dec 2018 23:39:24 -0500 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove function names from error messages In-reply-to: <20181220012145.GG27104@paquier.xyz> References: <20181219234103.GC27104@paquier.xyz> <13206.1545266551@sss.pgh.pa.us> <20181220012145.GG27104@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Thu, 20 Dec 2018 10:21:45 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22052.1545280763.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Dec 2018 23:39:23 -0500 Message-ID: <22053.1545280763@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Wed, Dec 19, 2018 at 07:42:31PM -0500, Tom Lane wrote: >> Those are at least reporting SQL function names that the user will >> recognize ... still, we don't normally localize error messages >> by the reporting function name, so I tend to agree that these are >> not following the style guide. > What do you think about something like the attached? Hm, I guess I shouldn't have used the word "localize". I didn't mean whether the function name should be translated; what I meant was that we normally don't mention individual functions at all in error messages. The messages are supposed to be written as though a monolithic entity "the system" is speaking to you. So what I'd propose here is just ereport(NOTICE, (errmsg("waiting for required WAL segments to be archived= "))); or something along that line. I'm not sure if the "cleanup done" part is important, but I'd tend to the idea that it isn't. regards, tom lane