Re: function doesn't see change in search_path

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: function doesn't see change in search_path
Date: 2011-11-07 18:07:29
Message-ID: CAFj8pRDcUN8FARnYnrK=vn9n39gvHfdSq9=TtBeWHFbmRvbD_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2011/11/7 Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>:
> On Mon, 7 Nov 2011 17:55:11 +0100
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
>> Hello
>>
>> this is know bug/feature based on caching plans
>
> What puzzled me is I'm operating in a similar way in a different
> system and I'm not experiencing the same problem.
>
> Do different users have different caches?

depend on usage - cache is per session

> What about different sessions?

if you don't change a search_path inside session, then all will works well

>
>> There is workaround - you can put a copy of test_insert function to
>> every schema - no to "public" schema.
>
> That's pretty ugly. I'll take the chance to refactor everything and
> learn.

yes, this is workaround - it's not nice

>
> Where can i learn about creation and invalidation of plans in
> postgres documentation?
>
> BTW it looks to me you just answered to my address and not to the
> list. If it was by mistake feel free to repost everything to the
> list for other people's reference.
>
> thanks
>
> --
> Ivan Sergio Borgonovo
> http://www.webthatworks.it
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo Carneiro 2011-11-07 19:10:22 Is *.projects.postgresql.org offline?
Previous Message Pavel Stehule 2011-11-07 17:15:20 Re: Why fetch a row is more slow than a 'selec * from'