Re: Eurodates by default - Mailing list pgsql-patches

From Jan Wieck
Subject Re: Eurodates by default
Date
Msg-id 200203201620.g2KGKKn10202@saturn.janwieck.net
Whole thread Raw
In response to Re: Eurodates by default  (Yury Bokhoncovich <byg@center-f1.ru>)
List pgsql-patches
Yury Bokhoncovich wrote:
> [...]
>
> Folks, I do not see any serious reason to avoid compile-time option for
> people whom know what they are doing. The rest can sleep with peace w/o
> it. Contrary, the benefit for me is certain: skipping unneccesary checks.
> If somebody does not know about, this means that man can live without it.
> There is many option in various software which i do not know what is
> it for. Nevertheless this prevents neither me nor packagers to compile
> with necessary options only.
> "IF" will cost something, why did it need if I ALWAYS set the same
> condition? This will be just an optional feature.
>
> >
> > What we want to do is integrate the SET DateStyle variable into GUC
> > somehow, but I'm not entirely happy with the current behavior and have
> > been unable to agree with Thomas Lockhart on how to do it.  But it will
> > get done eventually.
>
> In case of DateStyle I need a values which will set Postgres,Euro per
> one hop. And there should be "-e" option in postmaster. Suggestions?

    As suggested before, do it with GUC variables. This means you
    can have compile time defaults that can be overridden in  the
    config file or with startup options.

    GUC  variables  are  the preferred mechanism for that sort of
    thing nowadays in the PostgreSQL project.  It might look easy
    to  you  to code it as "-e" now, but add the amount of effort
    you'd need to get that into the CVS (could be  infinite)  and
    you'll realize that it's finally not the easy way.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


pgsql-patches by date:

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