Re: thousands comma numeric formatting in psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)surnet(dot)cl>
Cc: Eugen Nedelcu <eugen(at)sifolt(dot)ro>, pgsql-patches(at)postgresql(dot)org, Bruno Wolff III <bruno(at)wolff(dot)to>
Subject: Re: thousands comma numeric formatting in psql
Date: 2005-06-21 14:11:11
Message-ID: 3043.1119363071@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Alvaro Herrera <alvherre(at)surnet(dot)cl> writes:
> On Tue, Jun 21, 2005 at 04:03:43PM +0300, Eugen Nedelcu wrote:
>> This is a patch for psql client and not for the backend.

> I think it would be much nicer if it was a backend setting.

Doing this as a backend setting has been proposed and rejected before.
The risk of breaking client code seems to outweigh any possible value.

As a psql setting, though, it seems relatively harmless --- certainly
no more dangerous than \x or the other pset formatting parameters.

> If it depended on the locale setting (LC_NUMERIC, I think)

Yes, I wanted to ask that too --- if the patch can cope with locales that
exchange the roles of comma and period, that would make a lot of people
very happy.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-06-21 14:14:27 Re: [PATCHES] default database creation with initdb
Previous Message Stephen Frost 2005-06-21 14:07:46 Re: Schedule for 8.1 feature freeze

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2005-06-21 17:19:02 Re: [PATCHES] O_DIRECT for WAL writes
Previous Message Bruno Wolff III 2005-06-21 13:34:36 Re: thousands comma numeric formatting in psql