Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id BB717161CA36 for ; Mon, 20 Feb 2012 16:56:17 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RzaHO-0003T6-5E for pgsql-bugs@postgresql.org; Mon, 20 Feb 2012 20:56:17 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q1KKtsNT028898; Mon, 20 Feb 2012 15:55:54 -0500 (EST) To: Guillaume Lelarge cc: Alvaro Herrera , Susanne Ebrecht , Pg Bugs Subject: Re: Syntax got translated In-reply-to: <8fb0c1eb813b2718f15dc2c357f43768@localhost> References: <4F40141A.2060109@2ndquadrant.com> <1329757905-sup-8549@alvh.no-ip.org> <8fb0c1eb813b2718f15dc2c357f43768@localhost> Comments: In-reply-to Guillaume Lelarge message dated "Mon, 20 Feb 2012 21:22:30 +0100" Date: Mon, 20 Feb 2012 15:55:54 -0500 Message-ID: <28897.1329771354@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/151 X-Sequence-Number: 32494 Guillaume Lelarge writes: > On Mon, 20 Feb 2012 14:15:34 -0300, Alvaro Herrera > wrote: >> Excerpts from Susanne Ebrecht's message of sáb feb 18 18:11:54 -0300 >>> I think that the constraint keyword "DEFAULT" should not be translated >>> here. > I don't see why the modifiers shouldn't be translatable. It's not as if > they were intended to be copied and pasted in a query. They are here to > help the user understand the different modifiers in each column. > -1 to get rid of the translations. It seems to boil down to whether you think the "Modifiers" column contains SQL, or a textual description of the column's properties. I could go either way on that, but I notice that the existing code is in the habit of truncating the default expression at 128 characters. If we want to decide that we're printing real, copy-and-pastable SQL, that seems like a bad idea. On the other hand, if we're printing informational text, it's not an unreasonable thing. regards, tom lane