Skip site navigation (1) Skip section navigation (2)

Re: Eurodates by default

From: Jan Wieck <janwieck(at)yahoo(dot)com>
To: Yury Bokhoncovich <byg(at)center-f1(dot)ru>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Eurodates by default
Date: 2002-03-20 16:20:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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.



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

Do You Yahoo!?
Get your free address at

In response to

pgsql-patches by date

Next:From: Peter EisentrautDate: 2002-03-20 17:15:19
Subject: Re: [HACKERS] Fixes gram.y
Previous:From: Thomas LockhartDate: 2002-03-20 15:00:10
Subject: Re: useless statements in parse_datestyle_internal

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group