Re: function doesn't see change in search_path - Mailing list pgsql-general

From Richard Huxton
Subject Re: function doesn't see change in search_path
Date
Msg-id 4EB83B65.7080608@archonet.com
Whole thread Raw
In response to function doesn't see change in search_path  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List 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 by date:

Previous
From: Richard Huxton
Date:
Subject: Re: function within a function/rollbacks/exception handling
Next
From: Edson Richter
Date:
Subject: Re: Simple question on SELECT