Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1USQ6e-0006B9-U0 for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Apr 2013 11:00:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1USQ6e-0000KO-El for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Apr 2013 11:00:52 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1USQ6d-0000KI-J1 for pgsql-bugs@postgresql.org; Wed, 17 Apr 2013 11:00:51 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1USQ6a-0005u8-Vr for pgsql-bugs@postgresql.org; Wed, 17 Apr 2013 11:00:51 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1USQ6a-0005s0-Qe for pgsql-bugs@postgresql.org; Wed, 17 Apr 2013 04:00:48 -0700 Date: Wed, 17 Apr 2013 04:00:48 -0700 (PDT) From: Erika31 To: pgsql-bugs@postgresql.org Message-ID: <1366196448816-5752394.post@n5.nabble.com> In-Reply-To: <14893.1357586247@sss.pgh.pa.us> References: <50EB18E9.8020202@gmail.com> <14893.1357586247@sss.pgh.pa.us> Subject: Re: wrong search_path being used MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi Tom, Why not implement a session/database option to use (or not) the replanning of such functions. This would allow existing PG clusters to behave as they historically did, and would simultaneously allow users who want to have benefit of dynamically changing "search_path" inside a function to obtain the expected result. IMO, the query plan cache is a huge mistake, if it couldn't be disabled (in another way than using EXECUTE). Perhaps based on the volatility of the function ? I intensively use schemas in a "heavy" PG database (understand business-oriented logic db) and I'm today blocked by not being able to select schemas in functions called several times in a session, leading to wrong results. If performance is a good thing, getting the expected result is primordial. Lastly, is it planned to resolve this bug quickly ? Thanks for your attention - and your involvement in PG project ;-) -- View this message in context: http://postgresql.1045698.n5.nabble.com/wrong-search-path-being-used-tp5739027p5752394.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs