pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Use TypeName to represent type names in certain commands
Date: Tue, 30 Dec 2014 14:21:56 -0300
Message-ID: <20141230172156.GU1645@alvh.no-ip.org> (raw)
In-Reply-To: <54A2DB06.90502@vmware.com>
References: <E1Y607N-0007x9-BN@gemulon.postgresql.org>
	<54A2DB06.90502@vmware.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Heikki Linnakangas wrote:
> On 12/30/2014 06:58 PM, Alvaro Herrera wrote:
> >-                        errmsg("name list length must be %d", 1)));
> >+                        errmsg("name list length must be exactly %d", 1)));
> 
> Seems silly to pass constant 1 as an argument. (Yeah, it was silly before
> this commit too.)

It seems silly, but if we had another message with a different constant,
this would make them both be a single translatable string.  I have
changed other messages in the same way, for example see the (seemingly
unrelated) change to src/backend/libpq/hba.c in 73c986adde5d73a5e2555da.

> There is one instance of the old message left in pg_get_object_address.
> Should change that too for consistency, and to reduce translation work.

Hm, I couldn't find it ... care to provide a line number?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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



view thread (4+ messages)  latest in thread

Message-ID: <20141230172156.GU1645@alvh.no-ip.org>
Permalink:  ../20141230172156.GU1645@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141230172156.GU1645@alvh.no-ip.org

 · 

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: alvherre@2ndquadrant.com, hlinnakangas@vmware.com
  Subject: Re: pgsql: Use TypeName to represent type names in certain commands
  In-Reply-To: <20141230172156.GU1645@alvh.no-ip.org>
  References: <E1Y607N-0007x9-BN@gemulon.postgresql.org> <54A2DB06.90502@vmware.com> <20141230172156.GU1645@alvh.no-ip.org>

* 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