PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 4th, 2002, 03:32 PM
cresswelln cresswelln is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: London, England
Posts: 14 cresswelln User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Querying accross databases

Hi,

Does anyone know how to write queries to tables in other database intances in postgres? For examlpe if I have two DB instances set up, called "MyDB" and "HisDB" I might want to, I may want to run an SQL in "MyDB" that selects data from a table in "HisDB".

Having consulted the docs it is unclear weather this is actually supported? Any clues? Thanks

NICK

Reply With Quote
  #2  
Old February 9th, 2002, 01:33 PM
mcbang mcbang is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 1 mcbang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs down Not easy...

Hi,
unfortuneatly the PostgreSQL does'nt support heteregenous queries among databases.
In the TODO-List the developer team called it an "exotic feature".
What a nonsense.

It was the only cause not to choose the DB for our projects.
I think many people think so.

Your only chance is to use another DB (MySQL, Sybase 11.0.3,

AFAIK Interbase doesn't support het. queries, too.

Otherwise you have to form adequate queries in your client application (PHP,C,Java,...)

Regards

Reply With Quote
  #3  
Old February 10th, 2002, 11:41 AM
cresswelln cresswelln is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: London, England
Posts: 14 cresswelln User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wink And the reason is...

Hey, thanks for the reply.

I found this info in the end from a couple of different forum sites and yes, it is a bit of a problem.

The problem seems to stem from the fact that each database has it's own set of system meta-tables, unlike SQL server or Oracle which stores them all in one table set, making applying roll-back rules and triggers much easier to manage when executing transactions accross databases.

Never Mind!!

NICK

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Querying accross databases

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap