Re: function doesn't see change in search_path

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: function doesn't see change in search_path
Дата
Msg-id 4EB83B65.7080608@archonet.com
обсуждение исходный текст
Ответ на function doesn't see change in search_path  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
On 07/11/11 14:43, Ivan Sergio Borgonovo wrote:
>
> create or replace function test_insert() returns void as
[snip]
> $$ language plpgsql volatile;
>
> set search_path to 'test1', 'public';

> set search_path to 'test2', 'public';
[snip unexpected behaviour]


I now try to add a SET search_path to the bottom of all my plpgsql
functions. It can get very confusing otherwise, as you've just demonstrated.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: function within a function/rollbacks/exception handling
Следующее
От: Edson Richter
Дата:
Сообщение: Re: Simple question on SELECT