Re: European date format option - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: European date format option
Date
Msg-id Pine.LNX.4.30.0109032147500.4304-100000@peter.localdomain
Whole thread Raw
In response to European date format option  (Nigel Gilbert <N.Gilbert@soc.surrey.ac.uk>)
List pgsql-general
Nigel Gilbert writes:

> The online documentation for SET says:
>
> Running postmaster using the option -o -e to set dates to the
          ^^^^^^^^^^

> European convention.
>
> but attempting to do this results in:
>
> $ pg_ctl start -o -e
    ^^^^^^
> postmaster successfully started
> $ /usr/local/pgsql/bin/postmaster: illegal option -- e
> Try '/usr/local/pgsql/bin/postmaster --help' for more information.

> Is this a bug in postmaster or in the documentation?  Is there a
> workaround (I need all the dates for all connections to be in
> DD-MM-YYYY format)?

That's not what you're going to get out of it anyway.  ("European" is a
much too general term.)  It's better not to rely in these settings.
Instead, explicitly format your values using the to_char() function.
(Set up a view or three if needed.)

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: "Alex Knight"
Date:
Subject: Re: [WAY OT] Re: PL/java?
Next
From: "Alex Knight"
Date:
Subject: Re: PL/java?