Re: Accessing 2 different databases in the same query ? - Mailing list pgsql-general

From Nagib Abi Fadel
Subject Re: Accessing 2 different databases in the same query ?
Date
Msg-id 20030602083954.95846.qmail@web21403.mail.yahoo.com
Whole thread Raw
In response to Re: Accessing 2 different databases in the same query ?  (Richard Huxton <dev@archonet.com>)
Responses Re: Accessing 2 different databases in the same query ?  (Richard Huxton <dev@archonet.com>)
Re: Accessing 2 different databases in the same query ?  (Darko Prenosil <darko.prenosil@finteh.hr>)
List pgsql-general
From what i read dblink let's us access another database in the same query ... Which is great.
 But does it slow down the query ??
And what about making references between tables (creating foreign keys) is it possible ?????


Richard Huxton <dev@archonet.com> wrote:
On Monday 02 Jun 2003 7:22 am, Nagib Abi Fadel wrote:
> Hi everyone,
>
> Is there a way to access 2 different Tables each one in a different
> database with one sql query ?(or to make references between them)...
>
> Personally i don't believe there's a way because we are talking about two
> different databases, but i'm facing this problem and i would really
> appreciate if anyone could help.

There's a package called "dblink" in the contrib directory of the source
distribution. Might also be available as RPM etc. This sounds like what you
want.

--
Richard Huxton


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

pgsql-general by date:

Previous
From: Jean-Michel POURE
Date:
Subject: Re: pgAdmin3 snapshots
Next
From: "Nigel J. Andrews"
Date:
Subject: PostgreSQL presentation in France