Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 670476352A6 for ; Wed, 2 Sep 2009 13:30:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 98805-01-6 for ; Wed, 2 Sep 2009 16:30:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id C465763482D for ; Wed, 2 Sep 2009 13:30:05 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id A99A7A2D1; Wed, 2 Sep 2009 12:30:03 -0400 (EDT) Date: Wed, 2 Sep 2009 12:30:03 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: "JUNG, Christian" cc: pgsql-jdbc@postgresql.org Subject: Re: PATCH: SET ROLE as connection parameter In-Reply-To: <24BB5F92CE3E62419C5A6D5B1A1E0F46028E1AF1@nts58.saarstahl.de> Message-ID: References: <24BB5F92CE3E62419C5A6D5B1A1E0F46028E1AF1@nts58.saarstahl.de> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/3 X-Sequence-Number: 19950 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