Re: setCatalog()

From: "Patrik Lundgren" <patrik(at)mensa(dot)se>
To: "'Barry Lind'" <blind(at)xythos(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: setCatalog()
Date: 2003-03-31 21:04:23
Message-ID: 000c01c2f7c9$1bfb81f0$0300a8c0@energy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

But when I use pgAdmin II I can administrate the different catalogs. Are
you saying that a different connection is created for each catalog?

Regards

--------------------------------------------

Patrik,

It is currently implemented. Because of how postgres connections work,
setCatalog is a noop. In postgres a connection connects to a specific
database. There is no way that a connection can be repointed to a
different database (that would be a different connection). So
setCatalog is implemented in the only way that is compatible with the
postgres architecture.

thanks,
--Barry

Patrik Lundgren wrote:
> Anyone knows of any plans of implementing the setCatalog method in
> Connection?
>
> Regards,
> Patrik Lundgren
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Miguel Angel Martin 2003-03-31 22:21:48 I can't connect to a database from application
Previous Message Bill Thomason 2003-03-31 17:50:04 Problem with the LargeObjectManager class in 7.2.1 java libraries?