Re: PL/SQL & unset custom variable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/SQL & unset custom variable
Дата
Msg-id 14470.1251915374@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/SQL & unset custom variable  (Gordon Ross <gr306@ucs.cam.ac.uk>)
Ответы Re: PL/SQL & unset custom variable  (Gordon Ross <gr306@ucs.cam.ac.uk>)
Список pgsql-general
Gordon Ross <gr306@ucs.cam.ac.uk> writes:
> Sorry, no joy :-(

> grails=> SELECT current_setting('phone.id');
> ERROR:  unrecognized configuration parameter "phone.id"

> grails=> SELECT coalesce(current_setting('phone.id'),'SYSTEM');
> ERROR:  unrecognized configuration parameter "phone.id"

You could use a SELECT from pg_settings to probe for the value
of the parameter without getting an error.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Subselect problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [Q] optmizing postgres for 'single client' / many small queries