creating constants in postgres

Started by Thomas F. O'Connellalmost 25 years ago2 messagesgeneral
Jump to latest
#1Thomas F. O'Connell
tfo@monsterlabs.com

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

-tfo

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Thomas F. O'Connell (#1)
Re: creating constants in postgres

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