Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 31D4B1337B67 for ; Fri, 15 Oct 2010 17:23:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13267-05 for ; Fri, 15 Oct 2010 20:22:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E3A3E1337B4A for ; Fri, 15 Oct 2010 17:22:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9FKMp35011069; Fri, 15 Oct 2010 16:22:51 -0400 (EDT) To: Stephen Frost cc: Dimitri Fontaine , =?utf-8?Q?Rados=C5=82aw?= Smogura , Magnus Hagander , David Fetter , Kevin Grittner , PG Hackers , PostgreSQL JDBC List , robertmhaas@gmail.com Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al. In-reply-to: References: <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu> <20101012141439.GA29627@fetter.org> <4CB43A4C0200002500036826@gw.wicourts.gov> <20101012155531.GB29627@fetter.org> <528f31015d6bf68650646b9b4ba71a10@smogura-softworks.eu> <20101015142126.GQ26232@tamriel.snowman.net> <20260.1287153534@sss.pgh.pa.us> <20101015145248.GR26232@tamriel.snowman.net> Comments: In-reply-to Dimitri Fontaine message dated "Fri, 15 Oct 2010 22:03:35 +0200" Date: Fri, 15 Oct 2010 16:22:51 -0400 Message-ID: <11068.1287174171@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/1048 X-Sequence-Number: 172088 Stephen Frost writes: >> The whole problem with search_path and role is very frustrating. We've >> taken to just hacking things to be dynamic SQL whenever it's >> role-specific, but that's a really poor solution. I wonder if it would >> be possible to have the function and prepare'd plan caches be key'd off >> of the search_path and role too..? So if you change one of those you >> end up having to re-plan it, but then that's also cached, etc.. FWIW, I can see the point of making cached plan lookup be search-path-specific. But why does the active role need to factor into it? regards, tom lane