Re: best way for constants in the database

Поиск
Список
Период
Сортировка
От Owen Jacobson
Тема Re: best way for constants in the database
Дата
Msg-id 144D12D7DD4EC04F99241498BB4EEDCC1C8046@nelson.osl.com
обсуждение исходный текст
Ответ на best way for constants in the database  (chester c young <chestercyoung@yahoo.com>)
Список pgsql-sql
chester c young wrote:

> anybody have a good way to impliment constants in the database?
>
> using an immutable pgpgsql function, constant_name() - works, but not
> necessarily very efficient.

A function declared IMMUTABLE should be efficient enough; it'll usually be evaluated once per query at most.  The real
answeris, as usual, "it depends."  What're you trying to accomplish with a constant? 


В списке pgsql-sql по дате отправления:

Предыдущее
От: chester c young
Дата:
Сообщение: best way for constants in the database
Следующее
От: Ottó Havasvölgyi
Дата:
Сообщение: Re: For update