How to make a copy of schema

From: "Andrus" <eetasoft(at)online(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: How to make a copy of schema
Date: 2006-10-15 16:10:53
Message-ID: egtml3$m2n$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a five company Postgres 8.1 database.

Each company data is stored in a different schema named Company1, Company2,
..., Company5
There is also public schema which contains common data.

Now customer wants to add sixth company to database.

In need to add some routine to my application which can create schema copy ?

How to make a copy of schema Company5 so that schema called Company6 is
created ?
Is there any sample code available ?

Andrus

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-10-15 16:30:45 Re: more anti-postgresql FUD
Previous Message Chris Mair 2006-10-15 14:48:22 Re: Triggers