Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y615p-0008UT-Oz for pgsql-committers@arkaria.postgresql.org; Tue, 30 Dec 2014 18:00:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y615p-0001zx-9h for pgsql-committers@arkaria.postgresql.org; Tue, 30 Dec 2014 18:00:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y615o-0001zr-Ik for pgsql-committers@postgresql.org; Tue, 30 Dec 2014 18:00:28 +0000 Received: from outmail149084.authsmtp.net ([62.13.149.84]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y615l-0004Ra-1c for pgsql-committers@postgresql.org; Tue, 30 Dec 2014 18:00:26 +0000 Received: from mail-c237.authsmtp.com (mail-c237.authsmtp.com [62.13.128.237]) by punt18.authsmtp.com (8.14.2/8.14.2/) with ESMTP id sBUI0NSc003730; Tue, 30 Dec 2014 18:00:23 GMT Received: from alvin.alvh.no-ip.org (client-186-11-241-57.imovil.entelpcs.cl [186.11.241.57] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id sBUI0Ijv039499; Tue, 30 Dec 2014 18:00:20 GMT Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 33FC774B; Tue, 30 Dec 2014 14:21:56 -0300 (CLST) Date: Tue, 30 Dec 2014 14:21:56 -0300 From: Alvaro Herrera To: Heikki Linnakangas Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Use TypeName to represent type names in certain commands Message-ID: <20141230172156.GU1645@alvh.no-ip.org> References: <54A2DB06.90502@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54A2DB06.90502@vmware.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Server-Quench: b914d205-904d-11e4-9f74-002590a135d3 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZcSBoa BzkeAQdJTRslYBtL RB4bawxAL0wMSABN M15eIxoJcUtHHRZ1 VjUUWVRVVE1wUWl1 awBTbEtcakxQXgR0 UkxIXFdVCwBgBgMB SF1sN2ByDl8AeH15 YU9rEHNYX0Q0J098 RhpWFWgbbGdkPH0e URVcagoCdwdXfh9H b1l/BXIOZDEEKBg1 TUcAFBcUGBRjFAlv eTRFNV0JWEJZVgMn Slg+DC0iO0QASm0v KFQ8J0YGEV0cNFl6 LUo5VBoeOhofEUVf GSMFCyJDO1AAQWIg CgZfVEgSC1UA X-Authentic-SMTP: 61633235383639.1024:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 186.11.241.57/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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