pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreak@officenet.no>
To: Paul Thomas <paul@tmsl.demon.co.uk>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: please help - schema in jdbc connection string
Date: Wed, 8 Sep 2004 11:29:31 +0200
Message-ID: <200409081129.32040.andreak@officenet.no> (raw)
In-Reply-To: <20040908095122.A31311@bacon>
References: <BFA548F7C4F8AB4DAA80E93C996633E61A3F98@ZAPPA.ic.aiall>
	<20040908095122.A31311@bacon>

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://<host>:5432/<db>?schema=<schema1>
> >
> >
> >
> > 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 <schema> 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 <andreak@officenet.no>
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 |                                             |
------------------------+---------------------------------------------+

view thread (6+ messages)  latest in thread

Message-ID: <200409081129.32040.andreak@officenet.no>
Permalink:  ../200409081129.32040.andreak@officenet.no/
Also on:    postgresql.org/message-id/200409081129.32040.andreak@officenet.no

 · 

reply

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: andreak@officenet.no, paul@tmsl.demon.co.uk
  Subject: Re: please help - schema in jdbc connection string
  In-Reply-To: <200409081129.32040.andreak@officenet.no>
  References: <BFA548F7C4F8AB4DAA80E93C996633E61A3F98@ZAPPA.ic.aiall> <20040908095122.A31311@bacon> <200409081129.32040.andreak@officenet.no>

* 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