X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 75C5C329C6B for ; Thu, 9 Sep 2004 05:03:39 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56476-01 for ; Thu, 9 Sep 2004 04:03:29 +0000 (GMT) Received: from hotmail.com (bay15-dav15.bay15.hotmail.com [65.54.184.119]) by svr1.postgresql.org (Postfix) with ESMTP id 8241B329C82 for ; Thu, 9 Sep 2004 05:03:28 +0100 (BST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 8 Sep 2004 21:03:27 -0700 Received: from 202.71.147.145 by bay15-dav15.bay15.hotmail.com with DAV; Thu, 09 Sep 2004 04:03:27 +0000 X-Originating-IP: [202.71.147.145] X-Originating-Email: [antonypaul24@hotmail.com] X-Sender: antonypaul24@hotmail.com From: "Antony Paul" To: References: Subject: Re: please help - schema in jdbc connection string Date: Thu, 9 Sep 2004 09:39:28 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 09 Sep 2004 04:03:27.0771 (UTC) FILETIME=[F5F3F6B0:01C49621] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200409/22 X-Sequence-Number: 10912 http://www.postgresql.org/docs/7.3/static/ddl-schemas.html rgds Antony Paul ----- Original Message ----- From: "Nanu Ram" To: "Andreas Joseph Krogh" ; "Paul Thomas" Cc: Sent: Wednesday, September 08, 2004 8:48 PM Subject: Re: [JDBC] please help - schema in jdbc connection string I can definitely make use of this - or some other way to achieve this - I don't want to be required to specify the schema in each of my sql statements. I heard someone say you can do it with the search path env. var. Can someone give an eg. of this in conjunction with a java code snippet? Thanks NANU RAMAMRUTHAM / DIRECTOR, PRODUCT DEVELOPMENT / nanu@icrossing.com /direct/ 480.505.5810 /main/ 480.505.5800 /fax/ 480.505.5814 icrossing, inc. icrossing.com | new york | scottsdale -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Andreas Joseph Krogh Sent: Wednesday, September 08, 2004 2:30 AM To: Paul Thomas Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] please help - schema in jdbc connection string On Wednesday 08 September 2004 10:51, Paul Thomas wrote: > On 08/09/2004 01:50 Nanu Ram wrote: > > Hi: > > > > > > > > I am sorry of this was already answered earlier (I looked - it was > > asked, but didn't find the ans.). Has this been implemented? > > > > I would like to connect to one of the schema's in my database, something > > likes this ... > > > > > > > > jdbc:postgresql://:5432/?schema= > > > > > > > > I am on 7.4.3 > > You don't connect to schemas, you connect to databases. I don't think that's the answer hi's looking for. What he needs is setting the default search_path to before he can operate on the db, and he doesn't want to do it programmaticly(which I understand why). I think this is perfectly valid and makes sence. I made a patch to the JDBC driver to allow this some time ago, but it was rejected(lack of docs I think). Let me know if it's of interest. -- Andreas Joseph Krogh Senior Software Developer / Manager gpg public_key: http://dev.officenet.no/~andreak/public_key.asc ------------------------+---------------------------------------------+ OfficeNet AS | Two tomatoes in a fridge. One tomato says | Hoffsveien 17 | to the other, "It's cold in here, isn't it?"| PO. Box 425 Skøyen | The other tomato says, "F**king hell, | 0213 Oslo | a talking tomato!" | NORWAY | | Phone : +47 22 13 01 00 | | Direct: +47 22 13 10 03 | | Mobile: +47 909 56 963 | | ------------------------+---------------------------------------------+ ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly