Re: Thousands separator

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Thousands separator
Date: 2012-06-27 20:45:53
Message-ID: CABUevEz8+vtgznaq0mwnN9vzfaVkRHLPk_QL2c_LefRN_mk+nQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Wed, Jun 27, 2012 at 8:08 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Wed, Jun 27, 2012 at 6:43 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> Attached patch implements a setting for thousands separator in the
>> query result grid (typically you'd use space or comma, but it supports
>> whatever you can think of. Think of all the fun you can have by making
>> it 0 or 3).
>>
>> It only does the query result window and not the edit grid, because
>> this way we only have to insert it, and not try to parse it back
>> (think about how much *less* fun it would be to parse that back if it
>> was 0 or 3). I think that's perfectly ok - and it's still very useful
>> in the query result.
>>
>> Comments?
>
> Can't we get the separator rules from the locale (and for that matter,
> the date format)?

We could, but you'd still want a setting to turn it on or off. And
there's always going to be people who don't agree with their locale
always (I know I'm one of them in many cases, though not specifically
this one). Thus having it configurable is better, I think.

We could make it default to whatever is in the locale if we want - but
I think defaulting to none at all is actually a better choice, and it
keeps it to "default is what we had before"...

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin Trac 2012-06-27 20:46:25 [pgAdmin III] #365: pg_terminate_backend() can be used on backends with matching role on 9.2
Previous Message Guillaume Lelarge 2012-06-27 20:44:21 Re: Thousands separator