From: | Nagib Abi Fadel <nagib_postgres(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Richard Huxton <dev(at)archonet(dot)com> |
Subject: | Re: Accessing 2 different databases in the same query ? |
Date: | 2003-06-02 08:39:54 |
Message-ID: | 20030602083954.95846.qmail@web21403.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)archonet(dot)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).
From | Date | Subject | |
---|---|---|---|
Next Message | Nigel J. Andrews | 2003-06-02 08:48:27 | PostgreSQL presentation in France |
Previous Message | Jean-Michel POURE | 2003-06-02 08:31:00 | Re: pgAdmin3 snapshots |