From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Bill Thoen <bthoen(at)gisnet(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Accessing a database form another database |
Date: | 2009-08-10 16:57:06 |
Message-ID: | 20090810165706.GL25552@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Aug 10, 2009 at 10:48:10AM -0600, 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?
That last is much easier. Create a schema each for Spacely and
Cogswell, then one for WorldMap.
http://www.postgresql.org/docs/current/static/sql-createschema.html
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-08-10 17:01:50 | Re: PQstatus does not seem to work |
Previous Message | John R Pierce | 2009-08-10 16:51:32 | Re: NOTICE: there is no transaction in progress |