Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Za7uo-0000Yn-Oc for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2015 19:53:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Za7un-0005fq-HM for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2015 19:53:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Za7tT-0004D7-U6 for pgsql-hackers@postgresql.org; Thu, 10 Sep 2015 19:52:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Za7tQ-0000p8-Qa for pgsql-hackers@postgresql.org; Thu, 10 Sep 2015 19:52:26 +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 t8AJqFIw011816; Thu, 10 Sep 2015 15:52:15 -0400 From: Tom Lane To: Robert Haas cc: Amit Kapila , Fujii Masao , Alvaro Herrera , Andrew Dunstan , PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file In-reply-to: References: <20150702141409.GL3289@postgresql.org> Comments: In-reply-to Robert Haas message dated "Thu, 10 Sep 2015 14:00:01 -0400" Date: Thu, 10 Sep 2015 15:52:15 -0400 Message-ID: <11815.1441914735@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Wed, Sep 9, 2015 at 11:49 PM, Amit Kapila 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