Re: Accessing a database form another database

From: Guy Rouillier <guyr-ml1(at)burntmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Accessing a database form another database
Date: 2009-08-10 21:50:51
Message-ID: 4A80963B.7050308@burntmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Thoen wrote:
> I've got some GIS tables that I want to use across several projects and
> currently I've got each project in a separate database. So say I've got
> two databases, one for the Spacely Sprookets project and one for the
> Cogswell Cogs contract, but I want to access my WorldMap tables in my
> GIS database to make maps for both of these projects. How do I
> reference a table that's in another database? Or should I organize my
> PostgreSQL data differently?

You can use dblink for this purpose:

http://www.postgresonline.com/journal/index.php?/archives/44-Using-DbLink-to-access-other-PostgreSQL-Databases-and-Servers.html

--
Guy Rouillier

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kobus Wolvaardt 2009-08-10 22:17:41 Re: Postgres memory question
Previous Message Scott Marlowe 2009-08-10 21:36:51 Re: Postgres memory question