Re: Bug? Prepared queries continue to use search_path from their preparation time

From: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bug? Prepared queries continue to use search_path from their preparation time
Date: 2012-07-12 01:18:34
Message-ID: 4FFE25EA.3010707@strategicdata.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/07/12 00:07, Tom Lane wrote:
> Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au> writes:
>> The issue occurs when you have server-side prepared queries enabled, and
>> then change the search_path parameter after creating a prepared query.
>> Future executions of that query still seem to be using the original
>> search_path.
>
> This behavior is intentional.

In that case, the error lies with the Perl libraries that automatically
prepare and cache queries, but do not include the search_path in the
cache keys.

I'll bring it up with them.

thanks for your advice,
Toby

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2012-07-12 02:01:08 Re: Timeline error on streaming replica (WAS: "Please post")
Previous Message Craig Ringer 2012-07-12 01:07:37 Re: PostgreSQL limitations question