pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Fujii Masao <masao.fujii@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file
Date: Thu, 10 Sep 2015 15:52:15 -0400
Message-ID: <11815.1441914735@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYbOSiUiBnmdi-EePGNM4qgGbctqTCsfmxuxveHh+bYUA@mail.gmail.com>
References: <E1YsASW-0000Aa-Ut@gemulon.postgresql.org>
	<CAHGQGwFB+qR+y8r3Gjv+ZCGgU+J_G8ECPQOf5+Nanm9eGXmOTg@mail.gmail.com>
	<CAA4eK1Lb1j8BpT9SgKviZRMVPbZxiFcni1CtYgG6TW6ynAjDtQ@mail.gmail.com>
	<CAHGQGwHjBvnqiqMc1Gn3Qywk4ZUMX51_XikreKj7Jthpc2euVQ@mail.gmail.com>
	<CAA4eK1+yA6d4EVXt3VWBVJ6hg-yU2Y+Q6qZNYwoVCR4-SAWGmw@mail.gmail.com>
	<CAHGQGwHFXyZuNd-_aev+L6-FJwqk50vKyy1jmY0eNy0dEQZbiQ@mail.gmail.com>
	<CAA4eK1+VAikW56kD1cV=237K8+XPatw0VXT_UNeab8T+Y0z2XA@mail.gmail.com>
	<CAA4eK1Lf7qBgKmRYbs1hje9i8RBYe5-nO_a1TT+TY_Aj-6O1Mw@mail.gmail.com>
	<CA+Tgmoa66DQy=LYYr7vSVpkUEK79ec-uRC3p3VL+iwwe1KbEgg@mail.gmail.com>
	<CAA4eK1Lb1DLNf9HB-TZho4N92BvtTBaqCHh+0JwCWwtATi9qEw@mail.gmail.com>
	<20150702141409.GL3289@postgresql.org>
	<CAA4eK1JNhY6UhH5VQXDWvGYHd3VGyBDT+wqbyvH6BrXEZufotg@mail.gmail.com>
	<CAHGQGwEd2an6Cv2ikXHnf37XG53RQicEBqGuW+Bi0YkWYezNiw@mail.gmail.com>
	<CA+TgmoY=ad64xAhfEU_s2mQ0atwTW4T=QNaftvyTrZXqR8X_uA@mail.gmail.com>
	<CAA4eK1+UroR1-Qf-u93KbvNWe9mXj4rVhupri9t8oQFxtRSG8w@mail.gmail.com! >
	<CAHGQGwG6YPSvYZHPFxQY+zUe3EN_Xz77FLgTKe5yxXCC44VOTw@mail.gmail.com>
	<CAA4eK1Kh9WCgG4Uhu3QzEoJVDOrNB=DKEu3HeYOy0dE03uSAiA@mail.gmail.com>
	<CAHGQGwEetDpbVwuYMmfgUg9CHY5XF6hAFLgH6Rc8zpc2qtrssA@mail.gmail.com>
	<CAA4eK1+KD3g3WLQUgEfqY+ApxQ=_0ygXt=SR91Tp72KEbqH1Aw@mail.gmail.com>
	<CAHGQGwE1D_JD7Uc7ny_9ScaMn8VQf2uL6YZ2v_FsTi2J7oZmAg@mail.gmail.com>
	<CAA4eK1JcPVEDvH=N9fbs2Cj2h86ML8_jNyHefyic77KFevHm0g@mail.gmail.com>
	<CA+TgmoYbOSiUiBnmdi-EePGNM4qgGbctqTCsfmxuxveHh+bYUA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Sep 9, 2015 at 11:49 PM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> - errdetail("Could not rename \"%s\" to \"%s\": %m.",
>> + errdetail("\"%s\" could not be renamed to \"%s\": %m.",
>> 
>> Is there any reason to change this message?
>> I think you have changed this message to make it somewhat similar with
>> the new message we are planning to use in this function, but I don't see
>> that as compelling reason to change this message.

> The old message better follows the guidelines.  See section 51.3.7:
> Avoid Passive Voice.  The old message is what's called
> "telegram-style", with PostgreSQL itself as the implicit subject.  The
> proposed replacement is just the regular old passive voice.

Neither version is following the guidelines very well, in particular they
should be mentioning what kind of object %s is (file? table? tablespace?).
But to me the "could not be renamed" version seems to be closer to the
spirit of the "use complete sentences" rule for errdetail.  The other one
seems better fit for a primary error message, which is supposed to be
kept short.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (74+ messages)  latest in thread

Message-ID: <11815.1441914735@sss.pgh.pa.us>
Permalink:  ../11815.1441914735@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11815.1441914735@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, robertmhaas@gmail.com, amit.kapila16@gmail.com, masao.fujii@gmail.com, alvherre@2ndquadrant.com, andrew@dunslane.net, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file
  In-Reply-To: <11815.1441914735@sss.pgh.pa.us>
  References: <E1YsASW-0000Aa-Ut@gemulon.postgresql.org> <CA+Tgmoa66DQy=LYYr7vSVpkUEK79ec-uRC3p3VL+iwwe1KbEgg@mail.gmail.com> <CAA4eK1Lb1DLNf9HB-TZho4N92BvtTBaqCHh+0JwCWwtATi9qEw@mail.gmail.com> <20150702141409.GL3289@postgresql.org> <CAA4eK1JNhY6UhH5VQXDWvGYHd3VGyBDT+wqbyvH6BrXEZufotg@mail.gmail.com> <CAHGQGwEd2an6Cv2ikXHnf37XG53RQicEBqGuW+Bi0YkWYezNiw@mail.gmail.com> <CA+TgmoY=ad64xAhfEU_s2mQ0atwTW4T=QNaftvyTrZXqR8X_uA@mail.gmail.com> <CAHGQGwG6YPSvYZHPFxQY+zUe3EN_Xz77FLgTKe5yxXCC44VOTw@mail.gmail.com> <CAA4eK1Kh9WCgG4Uhu3QzEoJVDOrNB=DKEu3HeYOy0dE03uSAiA@mail.gmail.com> <CAHGQGwEetDpbVwuYMmfgUg9CHY5XF6hAFLgH6Rc8zpc2qtrssA@mail.gmail.com> <CAA4eK1+KD3g3WLQUgEfqY+ApxQ=_0ygXt=SR91Tp72KEbqH1Aw@mail.gmail.com> <CAHGQGwE1D_JD7Uc7ny_9ScaMn8VQf2uL6YZ2v_FsTi2J7oZmAg@mail.gmail.com> <CAA4eK1JcPVEDvH=N9fbs2Cj2h86ML8_jNyHefyic77KFevHm0g@mail.gmail.com> <CA+TgmoYbOSiUiBnmdi-EePGNM4qgGbctqTCsfmxuxveHh+bYUA@mail.gmail.com> <11815.1441914735@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