Re: Help with CREATE FUNCTION

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help with CREATE FUNCTION
Дата
Msg-id 1621.1461003577@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Help with CREATE FUNCTION  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Help with CREATE FUNCTION  (Kip Warner <kip@thevertigo.com>)
Список pgsql-novice
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Monday, April 18, 2016, Kip Warner <kip@thevertigo.com> wrote:
>> They are pre-calculated constants that are part of a more complex
>> algorithm. I can't submit them when I install the database schema
>> because they may change later

> There is no provision in PostgreSQL for constructing a global variable in
> that fashion.  You could maybe leverage GUCs to that effect, though.

If they might change later, they're not really constants, hm?  The
usual advice for this sort of thing is to store them in a table.

            regards, tom lane


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Help with CREATE FUNCTION
Следующее
От: Kip Warner
Дата:
Сообщение: Re: Help with CREATE FUNCTION