Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Switching database inside current connection





On Wed, 27 Sep 2006, Jeff Madison wrote:

I have to search multiple, identical databases on a server and am currently having to create a DataSource for each database on the server and then get a connection. How would I create a DataSource for the server and then modify the connnection to "switch" databases. I would like to just re-use the same connection for obvious reasons.

This is not possible with postgresql. You can only use the database you initially connected to. To access parts of other database you can use contrib/dblink, but for your purposes I think multiple connections are required.

Kris Jurka



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group