Re: thousands comma numeric formatting in psql

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: thousands comma numeric formatting in psql
Date: 2005-06-21 11:59:38
Message-ID: 20050621115938.GB28910@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, Jun 21, 2005 at 08:42:16 +0300,
Eugen Nedelcu <eugen(at)sifolt(dot)ro> wrote:
>
> One solution to deal with this is to use to_char function, but for
> complex selects against multiple tables it's not a good option.

Why not? You only have to apply it to the output expressions that
need it.

Note that if you output numbers like this, you also need to be able to
read them back in. I don't think adding complexity for doing that is
worth not having to add a few to_char calls in your select queries.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2005-06-21 12:04:30 Re: query plan ignoring check constraints
Previous Message John Hansen 2005-06-21 11:54:34 Re: query plan ignoring check constraints

Browse pgsql-patches by date

  From Date Subject
Next Message Eugen Nedelcu 2005-06-21 13:03:43 Re: thousands comma numeric formatting in psql
Previous Message Andreas Pflug 2005-06-21 09:40:58 Re: Server instrumentation