Re: [GENERAL] Select from multiple db's

From: Peter Eisentraut <peter(at)pathwaynet(dot)com>
To: Aaron Holtz <aholtz(at)bright(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Select from multiple db's
Date: 1999-07-14 21:25:05
Message-ID: Pine.LNX.4.10.9907141723030.898-100000@saxony.pathwaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 14 Jul 1999, Aaron Holtz wrote:

> Is it possible with postgres to do a select from tables contained in
> separate databases? I have two separate db's that are maintained, but
> would like to make a select from one of them to insert the data into the
> second one. Any thoughts on how to make this work would be appreciated.
> Merging the two db's won't be anything easy, so I'm looking for a way for
> this type of query to be valid.

The best way to do this would probably be to dump and restore. You can
restrict the dump to tables, and this thing could flow rather
automatically.

--
Peter Eisentraut
PathWay Computing, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ole Gjerde 1999-07-14 22:15:06 More on Weird index problem
Previous Message Albert Chen 1999-07-14 20:42:46 SQL Regular expression