Thread: parse_datestyle_internal always return TRUE

parse_datestyle_internal always return TRUE

From
Yury Bokhoncovich
Date:
Hello!

Does anybody know a reason parse_datestyle_internal always returns TRUE?

-- 
WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group.
Phone: +7 (3832) 106228, ext.140, E-mail: byg@center-f1.ru.
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.




Re: parse_datestyle_internal always return TRUE

From
Tom Lane
Date:
Yury Bokhoncovich <byg@center-f1.ru> writes:
> Does anybody know a reason parse_datestyle_internal always returns TRUE?

Ancient history.  Before GUC there were lots more routines and a lot
of control structure in variable.c; the return value of the parse/set
functions was used for something or other.  The stuff remaining in
variable.c isn't yet merged into the GUC mechanism ... but it should be.
        regards, tom lane


Re: parse_datestyle_internal always return TRUE

From
Thomas Lockhart
Date:
> Does anybody know a reason parse_datestyle_internal always returns TRUE?

It does not. However, if the code has not errored out on elog() calls
beforehand, the routine does return TRUE.
                       - Thomas