Re: Problem in "Set search path"

From: Chris Angelico <rosuav(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem in "Set search path"
Date: 2013-03-21 12:36:33
Message-ID: CAPTjJmrCQ4zd+rgAoK7drBurp-mKh2vBkc-aMsQfk3nNejRzAg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 21, 2013 at 11:33 PM, Kalai R <softlinne(dot)kv(at)gmail(dot)com> wrote:
> Hi,
>
> I am using postgresql 9.0.3. In my application I change often schema
> name using set search path. Some times schema name set correctly. But some
> time it does not set correctly and it takes the schema previously I set. Is
> any possibilities to happen like this?

If you roll back the transaction in which you set it, it isn't set,
but if you commit that transaction, it'll stay set for future
transactions. At least, that's been my experience.

ChrisA

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2013-03-21 12:39:09 Re: Problem in "Set search path"
Previous Message Kalai R 2013-03-21 12:33:30 Problem in "Set search path"