Re: Accessing a database form another database - Mailing list pgsql-general

From Guy Rouillier
Subject Re: Accessing a database form another database
Date
Msg-id 4A80963B.7050308@burntmail.com
Whole thread Raw
In response to Accessing a database form another database  (Bill Thoen <bthoen@gisnet.com>)
Responses Re: Accessing a database form another database
List 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

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Postgres memory question
Next
From: Kobus Wolvaardt
Date:
Subject: Re: Postgres memory question