pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Susanne Ebrecht <susanne@2ndquadrant.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Syntax got translated
Date: Mon, 20 Feb 2012 15:55:54 -0500
Message-ID: <28897.1329771354@sss.pgh.pa.us> (raw)
In-Reply-To: <8fb0c1eb813b2718f15dc2c357f43768@localhost>
References: <4F40141A.2060109@2ndquadrant.com>
	<1329757905-sup-8549@alvh.no-ip.org>
	<8fb0c1eb813b2718f15dc2c357f43768@localhost>

Guillaume Lelarge <guillaume@lelarge.info> writes:
> On Mon, 20 Feb 2012 14:15:34 -0300, Alvaro Herrera
> <alvherre@commandprompt.com> 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



view thread (12+ messages)  latest in thread

Message-ID: <28897.1329771354@sss.pgh.pa.us>
Permalink:  ../28897.1329771354@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28897.1329771354@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guillaume@lelarge.info, alvherre@commandprompt.com, susanne@2ndquadrant.com
  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>

* 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