pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Patch to allow setting schema/search_path in the connectionURL
Date: Mon, 22 Sep 2014 22:56:57 -0700
Message-ID: <54210BA9.3020107@hogranch.com> (raw)
In-Reply-To: <1411450782332-5820048.post@n5.nabble.com>
References: <1411069664209-5819543.post@n5.nabble.com>
	<541B39B1.1010202@hogranch.com>
	<CAJghg4+gacf_hVHjFsie1RaBwoJ4iguqZNh5o0uUpdE2du4C-A@mail.gmail.com>
	<CAPeFFaDpqq3xbzGsR+mquN-knu5kQD6MRMvOzMKb9m10n6kgGA@mail.gmail.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (41+ messages)  latest in thread

Message-ID: <54210BA9.3020107@hogranch.com>
Permalink:  ../54210BA9.3020107@hogranch.com/
Also on:    postgresql.org/message-id/54210BA9.3020107@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: Patch to allow setting schema/search_path in the connectionURL
  In-Reply-To: <54210BA9.3020107@hogranch.com>
  References: <1411069664209-5819543.post@n5.nabble.com> <541B39B1.1010202@hogranch.com> <CAJghg4+gacf_hVHjFsie1RaBwoJ4iguqZNh5o0uUpdE2du4C-A@mail.gmail.com> <CAPeFFaDpqq3xbzGsR+mquN-knu5kQD6MRMvOzMKb9m10n6kgGA@mail.gmail.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> <54210BA9.3020107@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox