Re: Eurodates by default - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Eurodates by default
Date
Msg-id Pine.LNX.4.30.0203192328480.824-100000@peter.localdomain
Whole thread Raw
In response to Re: Eurodates by default  (Thomas Lockhart <thomas@fourpalms.org>)
Responses Re: Eurodates by default  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Eurodates by default  (Yury Bokhoncovich <byg@center-f1.ru>)
List pgsql-patches
Thomas Lockhart writes:

> But I'm afraid I'm not recalling the specific issues associated with GUC
> vs no-GUC. What in the current behavior of date and time needs to
> change? Is it locale issues (which for non-ISO date input and output is
> a can of worms by itself) or something else?

One issues was that the semantics of DateStyle don't fit well into GUC.
DateStyle takes one or two strings and sets one or two integer variables.
GUC basically only supports once argument setting one variable of equal
type.  It can probably still be made to work with all the hooks that are
in place, but it doesn't look pretty.

I had once suggested splitting up DateStyle into two variables, one for
the "style" and for the day/month order.  I think this is ultimately
clearer to the user, too.

Others have suggested generalizing the "style" aspect to take a to_char
format.  This comes with its own set of problems.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-patches by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Eurodates by default
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Fixes gram.y