pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Feature request for setting the role with the URL connection string
3+ messages / 2 participants
[nested] [flat]

* Feature request for setting the role with the URL connection string
@ 2005-12-20 13:28  Roland Walter <rwa@mosaic-ag.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Roland Walter @ 2005-12-20 13:28 UTC (permalink / raw)
  To: pgsql-jdbc

Hello!

I think it would be a nice feature, to be able to set the role of
database user with the URL of the connection string, as PostgreSQL 8.1
has the concept of roles now.

The jdbc-driver of Firebird has the connection parameter 'sql_role_name'
for this feature.

This would allow without code changes of the application to exchange
a Firebird-database with a PostgreSQL-database.

Just an idea.

(Viewing on the source code, I did not find any starting point to do
it myself.)

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.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Feature request for setting the role with the URL connection
@ 2005-12-20 21:29  Oliver Jowett <oliver@opencloud.com>
  parent: Roland Walter <rwa@mosaic-ag.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Oliver Jowett @ 2005-12-20 21:29 UTC (permalink / raw)
  To: Roland Walter <rwa@mosaic-ag.com>; +Cc: pgsql-jdbc

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?

-O



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Feature request for setting the role with the URL
@ 2005-12-21 09:17  Roland Walter <rwa@mosaic-ag.com>
  parent: Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Roland Walter @ 2005-12-21 09:17 UTC (permalink / raw)
  To: pgsql-jdbc

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.




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-12-21 09:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 13:28 Feature request for setting the role with the URL connection string Roland Walter <rwa@mosaic-ag.com>
2005-12-20 21:29 ` Re: Feature request for setting the role with the URL connection Oliver Jowett <oliver@opencloud.com>
2005-12-21 09:17   ` Re: Feature request for setting the role with the URL Roland Walter <rwa@mosaic-ag.com>

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