Re: wrong search_path being used - Mailing list pgsql-bugs

From Erika31
Subject Re: wrong search_path being used
Date
Msg-id 1366196448816-5752394.post@n5.nabble.com
Whole thread Raw
In response to Re: wrong search_path being used  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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.

pgsql-bugs by date:

Previous
From: "Sofer, Yuval"
Date:
Subject: general question and BUG #5038
Next
From: krzbia@interia.pl
Date:
Subject: BUG #8079: pg_ctl is killed by windows service controller due to "Timed out waiting for server startup" event