Re: accessing two databases at the same time

From: Ian Barwick <barwick(at)gmx(dot)net>
To: Peter Choe <choepete(at)mindspring(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: accessing two databases at the same time
Date: 2003-03-05 20:54:43
Message-ID: 200303052154.43604.barwick@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 05 March 2003 21:17, 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;

Not directly, see:

http://www.postgresql.org/docs/faqs/FAQ.html#4.24

The schema functionality added in version 7.3. may well meet
your needs though, e.g. you can define schema "A" and
schema "B" and perform the same sort of query as above.

Ian Barwick
barwick(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tony Grant 2003-03-05 21:06:51 a date_part question
Previous Message Peter Choe 2003-03-05 20:17:18 accessing two databases at the same time