Re: Multi Database queries - Mailing list pgsql-novice

From brew@theMode.com
Subject Re: Multi Database queries
Date
Msg-id Pine.BSF.4.58.0409221047140.59399@themode.com
Whole thread Raw
In response to Multi Database queries  (Jonathon Batson <jonathon@octahedron.com.au>)
List pgsql-novice
Jonathon Batson wrote:

> I am looking into setting up a multi-database system with Postgres7.3.4.
> In this case all the databases will be on the one server.
> Initial research shows that the contrib/dblink module is needed....
> My question is:
>     Is this the only way to query across databases?

Another way is to make separate simultaneous connections in your
application (which you can do using the perl DBI and probably other
languages, too) and split up the query into separate queries for each
database, assembling them in the application.

Doing it this way the databases could be on separate machines.

That's not very convenient if you are doing this many times, but if that's
the case maybe you shouldn't be using separate databases anyway.

brew

 ==========================================================================
                  Strange Brew   (brew@theMode.com)
     Check out my Musician's Online Database Exchange (The MODE Pages)
                        http://www.TheMode.com
 ==========================================================================


pgsql-novice by date:

Previous
From: Joe Conway
Date:
Subject: Re: Multi Database queries
Next
From: Frank Bax
Date:
Subject: Re: Backups