Re: PGSQL - FAQ 4.1

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Carsten Grewe <DerReisende(at)schatzis(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PGSQL - FAQ 4.1
Date: 2002-01-03 15:11:13
Message-ID: 3C347491.F99943F0@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> OK, can someone comment on this email I received. I am confused myself.
> FAQ item 4.1 says:
> > 4.1) Why is system confused about commas, decimal points, and date formats.
> Does locale only control dates? If so, why the mention of commas? This
> item was there before I started maintaining the FAQ.

I think there is confusion on these things, but the FAQ content does not
seem to reduce it much. afaik locale settings affect *nothing* in
date/time, but SET DATESTYLE does. Is it the case that LC_NUMERIC or
other settings would affect numeric *input*?

- Thomas

> Carsten Grewe wrote:
> > Hi Bruce!
> >
> > Below you'll find a question I asked to the pgsql-general list. I
> > missunderstood FAQ 4.1. Maybe it's just me - maybe the answer to the FAQ is
> > irritating - it's for you to judge.
> >
> > Kind regards and merry Christmas
> > Carsten
> >
> > ---------- forwarded message ----------
> >
> > Subject: Re: [GENERAL] localization
> > Date: Fri, 21 Dec 2001 13:06:20 +0100
> > From: Carsten Grewe <DerReisende(at)schatzis(dot)org>
> > To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
> >
> > Karel Zak, Freitag, 21. Dezember 2001 10:09:
> > > On Thu, Dec 20, 2001 at 10:24:31PM +0100, Carsten Grewe wrote:
> > > > I am a bit lost here. I have tried to convince pgsql to show numbers with
> > > > a decimal-comma (german style) instead of the decimal-point.
> > [snip]
> > >
> > > The backend ignore LC_NUMERIC. If you want output numbers in locale
> > > depend format use to_char() (for example to_char(1234.5, '9G999D9').
> > >
> > > Karel
> >
> > Thanks! I know about the Format Functions, but FAQ 4.1 made me believe that
> > there is a way to influence the backend.
> >
> > VVVVVVVVV
> > 4.1) Why is system confused about commas, decimal points, and date formats.
> >
> > Check your locale configuration. PostgreSQL uses the locale setting of the
> > user that ran the postmaster process. There are postgres and psql SET
> > commands to control the date format. Set those accordingly for your operating
> > environment.
> > VVVVVVVVV
> >
> > Kind regards and merry Christmas
> > Carsten
> >
> > -------------------------------------------------------
> >
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-01-03 15:20:49 Re: LWLock contention: I think I understand the problem
Previous Message Tom Lane 2002-01-03 15:05:24 Re: SET DATESTYLE to time_t style for client libraries?