Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 13E6F65012D for ; Wed, 9 Jul 2008 05:38:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80759-03 for ; Wed, 9 Jul 2008 05:38:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id 6CD03650131 for ; Wed, 9 Jul 2008 05:38:24 -0300 (ADT) thread-index: Acjhn0PT/vE/01S7SKehw9CNQwVSNQ== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 Received: from [80.222.70.18] ([80.222.70.18]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 9 Jul 2008 04:39:13 -0400 Message-ID: <487478FC.5080607@enterprisedb.com> Date: Wed, 09 Jul 2008 11:38:20 +0300 From: "Heikki Linnakangas" Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: "Scott Langley" Cc: Subject: Re: Patch to allow setting schema/search_path in the connectionURL References: <4873F034.8010301@scharp.org> In-Reply-To: <4873F034.8010301@scharp.org> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Jul 2008 08:39:13.0296 (UTC) FILETIME=[43C2F900:01C8E19F] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/23 X-Sequence-Number: 18808 Scott Langley wrote: > Many years ago, Andreas Joseph Krogh submitted a patch to allow the > setting of the default schema in a JDBC connection string: > > http://archives.postgresql.org/pgsql-jdbc/2002-12/msg00187.php > > It was rejected with some objections: > http://archives.postgresql.org/pgsql-jdbc/2002-12/msg00189.php > > I've made a modern version of this patch against the current CVS head > that hopefully addresses the earlier objections on this list. In this > version, however, the parameter is called 'searchpath' instead of 'schema' I think it would be more useful to provide a way to set any GUC variable in the connection string, not just search_path. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com