Re: accessing two databases at the same time - Mailing list pgsql-general

From Neil Conway
Subject Re: accessing two databases at the same time
Date
Msg-id 1046912866.10615.22.camel@tokyo
Whole thread Raw
In response to Re: accessing two databases at the same time  (Tariq Muhammad <tmuhamma@libertyrms.com>)
List pgsql-general
On Wed, 2003-03-05 at 16:09, Tariq Muhammad wrote:
> On Wed, 5 Mar 2003, Peter Choe wrote:
> > if i have database 'A' with a table called 'a' and another database 'B'
> > with a table called 'b', is there a way to do a select using both databases
> > and their tables?
> >
> > select * from A.a, B.b;
> >
>
> You may wanna have a look at dblink under contrib.

Or put the data into 2 different schemas -- a single query can access
relations in different schemas.

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC




pgsql-general by date:

Previous
From: P G
Date:
Subject: Where are the current install instructions?
Next
From: Doug McNaught
Date:
Subject: Re: Where are the current install instructions?