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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
Cc: 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-11 14:07:15
Message-ID: 23893.1342015635@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerry Sievers 2012-07-11 14:34:03 Re: Bug? Prepared queries continue to use search_path from their preparation time
Previous Message Jeff Ross 2012-07-11 14:01:14 Re: Transaction question