Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWJ6A-0002Ft-Bi for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 05:57:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWJ69-0008Qp-Qs for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 05:57:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWJ68-0008O6-62 for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 05:57:12 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWJ65-0001e6-Dw for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 05:57:10 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s8N5v2Z03393 for ; Mon, 22 Sep 2014 22:57:02 -0700 Message-ID: <54210BA9.3020107@hogranch.com> Date: Mon, 22 Sep 2014 22:56:57 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Patch to allow setting schema/search_path in the connectionURL References: <1411069664209-5819543.post@n5.nabble.com> <541B39B1.1010202@hogranch.com> <1411447985623-5820021.post@n5.nabble.com> <5420FE8B.7070109@hogranch.com> <1411448824623-5820028.post@n5.nabble.com> <54210115.7060203@hogranch.com> <1411449476155-5820034.post@n5.nabble.com> <542103B8.1080208@hogranch.com> <1411450782332-5820048.post@n5.nabble.com> In-Reply-To: <1411450782332-5820048.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 9/22/2014 10:39 PM, stagirus wrote: > But in some cases, while using JDBC and third-party tools, we don't have the > luxury of running "set search_path." why not? its a simple SQL command. personally, I find the default search_path to be perfect for our needs. we make extensive use of schema's named the same as the application roles, and we put common tables used by all roles in public. anyways, you SHOULD be able to set the search_path per role, not sure why that didn't work for you, but I'm too tired now to cook up an example showing it works as designed. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc