Re: Custom Class variables

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Custom Class variables
Дата
Msg-id 20090714234427.GS4799@alvh.no-ip.org
обсуждение исходный текст
Ответ на Custom Class variables  (Michael Gould <mgould@intermodalsoftwaresolutions.net>)
Список pgsql-general
Michael Gould wrote:
> I have created the following in my postgres.conf file
>
> custom_variable_classes = 'iss'
>
> In a SQL session I've tried
>
> Set iss.one = '1'
> set iss.two = '2'
>
> Select * from iss;
>
> How do I access the values from the custom class in sql code?

show iss.one;
select current_setting('iss.one');

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Mike Toews
Дата:
Сообщение: PL/Python debugging - line numbers
Следующее
От: Jim Michaels
Дата:
Сообщение: problem with pg_restore?