Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B039E161CA36 for ; Mon, 20 Feb 2012 17:17:24 -0400 (AST) Received: from sd-17937.dedibox.fr ([88.191.100.74]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rzabn-0003nr-JN for pgsql-bugs@postgresql.org; Mon, 20 Feb 2012 21:17:23 +0000 Received: from mail.lelarge.info (localhost.localdomain [127.0.0.1]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 3A3C73B9CB; Mon, 20 Feb 2012 22:17:07 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 20 Feb 2012 22:17:07 +0100 From: Guillaume Lelarge To: Tom Lane Cc: Alvaro Herrera , Susanne Ebrecht , Pg Bugs Subject: Re: Syntax got translated In-Reply-To: <28897.1329771354@sss.pgh.pa.us> References: <4F40141A.2060109@2ndquadrant.com> <1329757905-sup-8549@alvh.no-ip.org> <8fb0c1eb813b2718f15dc2c357f43768@localhost> <28897.1329771354@sss.pgh.pa.us> Message-ID: <371925a3a3fefe72f2455d207979cc7a@localhost> X-Sender: guillaume@lelarge.info User-Agent: RoundCube Webmail/0.4-beta Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/154 X-Sequence-Number: 32497 On Mon, 20 Feb 2012 15:55:54 -0500, Tom Lane wrote: > Guillaume Lelarge writes: >> On Mon, 20 Feb 2012 14:15:34 -0300, Alvaro Herrera >> wrote: >>> Excerpts from Susanne Ebrecht's message of s=C3=83=C2=A1b feb 18 18:1= 1:54 -0300 >>>> I think that the constraint keyword "DEFAULT" should not be translated >>>> here. >=20 >> I don't see why the modifiers shouldn't be translatable. It's not as i= f >> they were intended to be copied and pasted in a query. They are here t= o >> help the user understand the different modifiers in each column. >=20 >> -1 to get rid of the translations. >=20 > 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. >=20 My first move was that truncating to 128 characters was bad idea. But in = a terminal, you have a limited number of columns, so it would make sense. And, to me, it's a textual description. Not SQL. BTW, if it was SQL, when I do \d tablename, I should get the complete SQL query to create the tabl= e, not a description of the table definition. So, yeah, sure, the "Modifiers= " column doesn't contain SQL, it's a description. --=20 Guillaume http://www.postgresql.fr http://dalibo.com