From: Kris Jurka <books@ejurka.com>
To: JUNG, Christian <christian.jung@saarstahl.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PATCH: SET ROLE as connection parameter
Date: Wed, 2 Sep 2009 12:30:03 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.0909021224540.28438@leary.csoft.net> (raw)
In-Reply-To: <24BB5F92CE3E62419C5A6D5B1A1E0F46028E1AF1@nts58.saarstahl.de>
References: <24BB5F92CE3E62419C5A6D5B1A1E0F46028E1AF1@nts58.saarstahl.de>
On Wed, 5 Aug 2009, JUNG, Christian wrote:
> here's a small patch to set the role at connection time (parameter
> "role"). The patch was made against the current CVS-version.
>
1) Can this be done in the V3 ConnectionFactoryImpl's sendStartupPacket by
adding it to the params array? If so that would save a network roundtrip
per connection that used this option.
2) It doesn't have Datasource support. Any option that can be set via the
URL should also be settable on a Datasource.
3) In the past people have asked to be able to set other GUC parameters
(search_path, optimizer hints, ...) and we've resisted because we didn't
want to support some, but not all of these options. If we're going to do
this one, we should probably bite the bullet and do search_path as well
because that's a pretty commonly requested item.
Kris Jurka
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: books@ejurka.com, christian.jung@saarstahl.com
Subject: Re: PATCH: SET ROLE as connection parameter
In-Reply-To: <alpine.BSO.2.00.0909021224540.28438@leary.csoft.net>
References: <24BB5F92CE3E62419C5A6D5B1A1E0F46028E1AF1@nts58.saarstahl.de> <alpine.BSO.2.00.0909021224540.28438@leary.csoft.net>
* 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