Testing truthiness of GUC variables?

Поиск
Список
Период
Сортировка
От Abelard Hoffman
Тема Testing truthiness of GUC variables?
Дата
Msg-id CACEJHMi3ArDpcpRZgKU-=FFg+9GLLXmgr4rAojUTS67ei6Y5Ng@mail.gmail.com
обсуждение исходный текст
Ответы Re: Testing truthiness of GUC variables?  (Abelard Hoffman <abelardhoffman@gmail.com>)
Список pgsql-general
If I set a custom GUC variable to a boolean value, such as:

  SET myapp.audit = 'on';

is there a way to test it for truthiness in the same way the standard built-in variables are? IOW, the docs say a boolean can be written as:

Boolean values can be written as onofftruefalseyesno10 (all case-insensitive) or any unambiguous prefix of these.

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

Предыдущее
От: cowwoc
Дата:
Сообщение: Why isn't Java support part of Postgresql core?
Следующее
От: Abelard Hoffman
Дата:
Сообщение: Re: Testing truthiness of GUC variables?