pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Remove function names from error messages
Date: Wed, 19 Dec 2018 23:39:23 -0500
Message-ID: <22053.1545280763@sss.pgh.pa.us> (raw)
In-Reply-To: <20181220012145.GG27104@paquier.xyz>
References: <E1gZg2W-0008Lq-0w@gemulon.postgresql.org>
	<20181219234103.GC27104@paquier.xyz>
	<13206.1545266551@sss.pgh.pa.us>
	<20181220012145.GG27104@paquier.xyz>

Michael Paquier <michael@paquier.xyz> 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




view thread (8+ messages)  latest in thread

Message-ID: <22053.1545280763@sss.pgh.pa.us>
Permalink:  ../22053.1545280763@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22053.1545280763@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Remove function names from error messages
  In-Reply-To: <22053.1545280763@sss.pgh.pa.us>
  References: <E1gZg2W-0008Lq-0w@gemulon.postgresql.org> <20181219234103.GC27104@paquier.xyz> <13206.1545266551@sss.pgh.pa.us> <20181220012145.GG27104@paquier.xyz> <22053.1545280763@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox