Re: Copying schemas between databases

From: "Spiegelberg, Greg" <gspiegelberg(at)isodxsolutions(dot)com>
To: <gap(dot)mailinglists(at)googlemail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Copying schemas between databases
Date: 2007-05-10 13:02:28
Message-ID: 82E74D266CB9B44390D3CCE44A781ED90B6B14@POSTOFFICE.cranel.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

See contrib/dblink. It may be able to help.

________________________________

From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of
gap(dot)mailinglists(at)googlemail(dot)com
Sent: Wednesday, May 09, 2007 10:00 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Copying schemas between databases



Hi

Im using postgresql 8.2

I need to access data accross databases, I believe this is not
possible in Postgre. So my only alternative appears to be copying data,
the whole public schema, from one database to another.

For example, i have a reporting database and several other
databases i would like to report on. I need to copy my public schemas
from the original databases to the reporting database and rename them
like so:

MyFirstDatabase.public > ReportingDatabase.firstdb
OtherDatabase > ReportingDatabase.otherdb

What is the easiest way to accomplish this? Or am i wrong in
thinking i cannot access adta directly accross databases?

Any help much apperciated.

thanks gp


In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Igor Neyman 2007-05-10 13:21:19 Re: Copying schemas between databases
Previous Message Szabolcs BALLA 2007-05-10 08:37:01 Invalid frontend message type 87?