Custom runtime variables

Поиск
Список
Период
Сортировка
От Scott Bailey
Тема Custom runtime variables
Дата
Msg-id 4A442523.10208@comcast.net
обсуждение исходный текст
Ответы Re: Custom runtime variables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I want to be able to change the behavior of some functions based on
custom runtime variables.

I added the following lines to my postgresql.conf file:

custom_variable_classes = 'foo'
foo.name = '1s'

Now if I do "show foo.name" I get '1s'
But it does not show up in show all or in pg_settings.

I didn't find much in the way of documentation. How does one access the
value of foo.name from a plpgsql or sql function?

Also, can the variable be stored in a specific data type or am I stuck
with text?



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

Предыдущее
От: Chris Spotts
Дата:
Сообщение: Re planned recovery from a certain transaction
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Custom runtime variables