Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUhtp-00021p-BB for pgsql-jdbc@arkaria.postgresql.org; Thu, 18 Sep 2014 20:01:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUhto-0005Ly-Q4 for pgsql-jdbc@arkaria.postgresql.org; Thu, 18 Sep 2014 20:01:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUhto-0005KQ-19 for pgsql-jdbc@postgresql.org; Thu, 18 Sep 2014 20:01:52 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XUhtj-00062c-UT for pgsql-jdbc@postgresql.org; Thu, 18 Sep 2014 20:01:50 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XUhth-0004D5-IM for pgsql-jdbc@postgresql.org; Thu, 18 Sep 2014 13:01:45 -0700 Date: Thu, 18 Sep 2014 13:01:45 -0700 (PDT) From: cowwoc To: pgsql-jdbc@postgresql.org Message-ID: <541B3A0D.1080604@bbs.darktech.org> In-Reply-To: <1411069664209-5819543.post@n5.nabble.com> References: <4873F034.8010301@scharp.org> <487478FC.5080607@enterprisedb.com> <1410977074803-5819366.post@n5.nabble.com> <1411069664209-5819543.post@n5.nabble.com> Subject: Re: Patch to allow setting schema/search_path in the connectionURL MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_396831_13540494.1411070505564" X-Pg-Spam-Score: -0.8 (/) 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 ------=_Part_396831_13540494.1411070505564 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I added a hook that runs immediately before acquiring a Connection. It sets the schema using an SQL update command, and forwards the connection on to the rest of the application. Not ideal but it works. Gili On 18/09/2014 3:47 PM, stagirus [via PostgreSQL] wrote: > I too have a similar requirement to specify the schema. > > I see in various discussions that many people have tried to fix this > problem. It appears there is no resolution yet. It is sad that the > JDBC driver community does not seem to pay any attention to the > end-user needs. Hello.. PLEASE WAKE UP! We are in a different era! > > Does anybody know of a solution on how to designate a schema while > establishing the connection? I would highly appreciate it!!! -- View this message in context: http://postgresql.1045698.n5.nabble.com/Patch-to-allow-setting-schema-search-path-in-the-connectionURL-tp2174512p5819547.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. ------=_Part_396831_13540494.1411070505564 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I added a hook that runs immediately before acquiring a Connection. It
sets the schema using an SQL update command, and forwards the connection
on to the rest of the application. Not ideal but it works.

Gili

On 18/09/2014 3:47 PM, stagirus [via PostgreSQL] wrote:
> I too have a similar requirement to specify the schema.
>
> I see in various discussions that many people have tried to fix this
> problem. It appears there is no resolution yet. It is sad that the
> JDBC driver community does not seem to pay any attention to the
> end-user needs. Hello.. PLEASE WAKE UP! We are in a different era!
>
> Does anybody know of a solution on how to designate a schema while
> establishing the connection? I would highly appreciate it!!!


View this message in context: Re: Patch to allow setting schema/search_path in the connectionURL
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
------=_Part_396831_13540494.1411070505564--