Thread: creating constants in postgres

creating constants in postgres

From
"Thomas F. O'Connell"
Date:
is there in postgres a way to create a constant like CURRENT_DATE for
general use?

-tfo


Re: creating constants in postgres

From
Peter Eisentraut
Date:
Thomas F. O'Connell writes:

> is there in postgres a way to create a constant like CURRENT_DATE for
> general use?

Those things are just functions with a special syntax.  No, it's not
easily possible to create more such functions, but it's easy to create
regular functions.

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