From: Roland Walter <rwa@mosaic-ag.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Feature request for setting the role with the URL
Date: Wed, 21 Dec 2005 10:17:41 +0100
Message-ID: <rc48xue7qru.fsf@mosaic-ag.com> (raw)
In-Reply-To: <43A877BA.5040208@opencloud.com>
References: <rc4y82faoe8.fsf@mosaic-ag.com>
<43A877BA.5040208@opencloud.com>
Oliver Jowett <oliver@opencloud.com> 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.
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: rwa@mosaic-ag.com
Subject: Re: Feature request for setting the role with the URL
In-Reply-To: <rc48xue7qru.fsf@mosaic-ag.com>
References: <rc4y82faoe8.fsf@mosaic-ag.com> <43A877BA.5040208@opencloud.com> <rc48xue7qru.fsf@mosaic-ag.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