dbTalk Databases Forums  

Multi Database queries

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Multi Database queries in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonathon Batson
 
Posts: n/a

Default Multi Database queries - 09-21-2004 , 10:17 PM






Hi All..
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?

Jonathon




---------------------------(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


Reply With Quote
  #2  
Old   
Joe Conway
 
Posts: n/a

Default Re: Multi Database queries - 09-21-2004 , 10:48 PM






Jonathon Batson wrote:
Quote:
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?
Yes, but, if your databases are all on one server under one postmaster
you should consider using one database with multiple schemas. See:
http://www.postgresql.org/docs/curre...ateschema.html

HTH,

Joe

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
  #3  
Old   
brew@theMode.com
 
Posts: n/a

Default Re: Multi Database queries - 09-22-2004 , 10:00 AM




Jonathon Batson wrote:

Quote:
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 (AT) theMode (DOT) com)
Check out my Musician's Online Database Exchange (The MODE Pages)
http://www.TheMode.com
================================================== ========================


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.