Re: Global value/global variable?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Global value/global variable?
Дата
Msg-id 11749.1403147616@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Global value/global variable?  (Ian Barwick <ian@2ndquadrant.com>)
Список pgsql-general
Ian Barwick <ian@2ndquadrant.com> writes:
> On 19/06/14 11:50, Edson Richter wrote:
>> It is possible to define a global value/variable in PostgreSQL in a way that I can use it in any
query/view/function?

> There's no such thing as a global variable, but why not use a table
> to store any global configuration values?

Actually, people do regularly (ab)use custom GUC variables for this
purpose.  But a table is not a bad solution.  The GUC solution does
not scale to more than order-of-a-hundred values.

            regards, tom lane


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

Предыдущее
От: Ian Barwick
Дата:
Сообщение: Re: Global value/global variable?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Overlapping ranges