X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5A0DB9DC813 for ; Wed, 21 Dec 2005 05:17:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76623-10 for ; Wed, 21 Dec 2005 05:17:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id 6C9019DC80C for ; Wed, 21 Dec 2005 05:17:42 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id E3BE7778C8 for ; Wed, 21 Dec 2005 10:18:59 +0100 (CET) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20149-09 for ; Wed, 21 Dec 2005 10:18:58 +0100 (CET) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id D902E778A3 for ; Wed, 21 Dec 2005 10:18:58 +0100 (CET) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id 9370E3A710; Wed, 21 Dec 2005 10:17:42 +0100 (CET) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id 84EAA3A70F for ; Wed, 21 Dec 2005 10:17:42 +0100 (CET) Received: from aupc287.mosaic-ag.com ([172.17.1.87]) by enterprise.mosaic-ag.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 21 Dec 2005 10:15:54 +0100 To: pgsql-jdbc@postgresql.org Subject: Re: Feature request for setting the role with the URL References: <43A877BA.5040208@opencloud.com> From: Roland Walter Date: Wed, 21 Dec 2005 10:17:41 +0100 In-Reply-To: <43A877BA.5040208@opencloud.com> (Oliver Jowett's message of "Tue, 20 Dec 2005 21:29:30 +0000") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, cygwin32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 21 Dec 2005 09:15:54.0343 (UTC) FILETIME=[251AD770:01C6060F] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200512/104 X-Sequence-Number: 14435 Oliver Jowett writes: > Roland Walter wrote: > >> (Viewing on the source code, I did not find any starting point to do >> it myself.) > > Probably do it in the AbstractJdbc2Connection constructor -- run an > appropriate query after the underlying connection is established. > > This almost belongs in the application, though.. isn't the role syntax > standardized? Setting the role is a problem, if you must use an abstraction layer for accesses to the database that you are not allowed or able to change. The abstraction layer handles all database specific features. Setting the role with the URL would mimic the behaviour of DB2 to be able to set the 'search_path' to the database tables automatically with the connection parameter 'currentSchema'. Regards, Roland. -- Roland Walter mailto: rwa (at) mosaic-ag (dot) com MOSAIC SOFTWARE AG phone: +49 (0) 22 25 / 88 2-41 1 Am Pannacker 3 fax: +49 (0) 22 25 / 88 2-20 1 D-53340 Meckenheim http://www.mosaic-ag.com Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail. This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail.