Re: Date or Documentation bug? - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: Date or Documentation bug?
Date
Msg-id Pine.LNX.4.21.0006171326130.348-100000@localhost.localdomain
Whole thread Raw
In response to Date or Documentation bug?  ("Mitterwald, Holger" <mittehlg@coi.de>)
List pgsql-bugs
Mitterwald, Holger writes:

> I am not shure if I discovered a Date or a Documentation bug.... The
> Manpage says if postgres is started with the option "-e" it uses
> european date-style in the format "dd-mm-yyyy". But this only takes
> effekt if I select datestyle=Postgres instead of the default "ISO".
> With Datestyle=ISO it is always "yyyy-mm-dd", no matter if I choose US
> or European style. With this behavior the postgres option "-e" does
> rather make any sense to me.

The documentation is kind of unclear at that point. The
European/NonEuropean option (-e) controls

1) Whether the month is before the day or vice versa in the 'SQL' and
'Postgres' styles.

2) How ambiguous date input (e.g., 01/02/99) is to be interpreted
regarding month before day.

It does not affect the output of the ISO format, since the ISO format is
fixed.

> P.S.: Is there a way to change the Datestyle to Postgres without a
> SQL-Statement, e.g. ENV-Variable or config-file?

PGDATESTYLE environment variable. Config file I'm working on.


--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden

pgsql-bugs by date:

Previous
From: Sean Kelly
Date:
Subject: Re: More "IpcMemoryCreate: shmget failed" errors
Next
From: Peter Eisentraut
Date:
Subject: Re: Some problem with inet type on PostgreSQL-7.0