Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6EA7A9FBE2A for ; Wed, 9 May 2007 11:07:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74801-04 for ; Wed, 9 May 2007 11:07:03 -0300 (ADT) X-Greylist: delayed 00:06:46.520251 by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id 4ADBB9FBE06 for ; Wed, 9 May 2007 11:07:03 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id a73so163622pye for ; Wed, 09 May 2007 07:07:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=chjEWPh5vUh0lAihbVhJEBx3QHQnWUcpHouatMRqPBsQaTP878J5KaO/hjhwfFW4F6kuh0HCXSQmCrSovbG9iocmhdy5mii1zEIibiKqn50KppfMv73BwSlqvp9EmB6tfC8p8MPqGcHjXdE8ScV/ktg3I0s1puDnRrvlqx09xqY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=jjACx1Tlr6xy+2ftuj0FOtqRlqFOYNGyDs/xuKitqFa/7+hNV9NZ3PlthSAxHH3XAbARJxO9bx6k+f1J4ZEeESkvZASI1+2ykh/QSF+uzKegwr5k7cB/gIj1ar6zjEqhM81uMyHzvChUNrYZaN9yyYVXOd6dQjLsXyiOwbiGXHU= Received: by 10.35.35.17 with SMTP id n17mr1064170pyj.1178719214971; Wed, 09 May 2007 07:00:14 -0700 (PDT) Received: by 10.35.88.6 with HTTP; Wed, 9 May 2007 07:00:14 -0700 (PDT) Message-ID: Date: Wed, 9 May 2007 15:00:14 +0100 From: gap.mailinglists@googlemail.com To: pgsql-admin@postgresql.org Subject: Copying schemas between databases MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9627_10043788.1178719214875" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/72 X-Sequence-Number: 25392 ------=_Part_9627_10043788.1178719214875 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_9627_10043788.1178719214875 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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


------=_Part_9627_10043788.1178719214875--