Re: accessing two databases at the same time

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tariq Muhammad <tmuhamma(at)libertyrms(dot)com>
Cc: Peter Choe <choepete(at)mindspring(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: accessing two databases at the same time
Date: 2003-03-06 01:07:47
Message-ID: 1046912866.10615.22.camel@tokyo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)samurai(dot)com> || PGP Key ID: DB3C29FC

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tony Grant 2003-03-06 01:59:05 Re: a date_part question
Previous Message P G 2003-03-06 00:16:52 Where are the current install instructions?