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 1gZmQC-0003nl-0d for pgsql-committers@arkaria.postgresql.org; Thu, 20 Dec 2018 00:42:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZmQA-0001im-Nc for pgsql-committers@arkaria.postgresql.org; Thu, 20 Dec 2018 00:42:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZmQA-0001if-If for pgsql-committers@lists.postgresql.org; Thu, 20 Dec 2018 00:42:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZmQ8-0001LW-Iy for pgsql-committers@lists.postgresql.org; Thu, 20 Dec 2018 00:42:38 +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 wBK0gVk7013207; Wed, 19 Dec 2018 19:42:31 -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: <20181219234103.GC27104@paquier.xyz> References: <20181219234103.GC27104@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Thu, 20 Dec 2018 08:41:03 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13205.1545266551.1@sss.pgh.pa.us> Date: Wed, 19 Dec 2018 19:42:31 -0500 Message-ID: <13206.1545266551@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 05:53:48PM +0000, Alvaro Herrera wrote: >> Remove function names from error messages > I am spotting a couple of extra ones for functions: > src/backend/access/transam/xlog.c: > (errmsg("pg_stop_backup cleanup done, waiting for required WAL segments > to be archived"))); > src/backend/access/transam/xlog.c: > (errmsg("pg_stop_backup still waiting for all required WAL segments to > be archived (%d seconds elapsed)", > Perhaps these could be improved as well? 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. regards, tom lane