From: Rajesh Kumar Mallah. <mallah@trade-india.com>
To: Lex <groups@homerlex.mailshell.com>
To: pgsql-admin@postgresql.org
Subject: Re: How Copy 7.3 Schemas?
Date: Thu, 16 Jan 2003 12:27:34 +0530
Message-ID: <200301161227.34086.mallah@trade-india.com> (raw)
In-Reply-To: <002e01c2bc92$faadb390$2f01010a@lexlaptop>
References: <002e01c2bc92$faadb390$2f01010a@lexlaptop>
A drity method could be.
create table schema2.table2 as select * from schema1.table1 ;
in a loop that uses system catalogs.
regds
mallah.
On Wednesday 15 January 2003 06:08 pm, Lex wrote:
> I am playing with the new Schema feature in 7.3. I would like to copy
> the public schema into a new schema. Is there an easy way to do this?
> Something I can do with pg_dump (I don’t see a switch to specify which
> schema) Right now I an only interested in copying the structures –
> later on it would be nice if I could copy the data as well.
>
>
>
> Regards
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mallah@trade-india.com, groups@homerlex.mailshell.com
Subject: Re: How Copy 7.3 Schemas?
In-Reply-To: <200301161227.34086.mallah@trade-india.com>
References: <002e01c2bc92$faadb390$2f01010a@lexlaptop> <200301161227.34086.mallah@trade-india.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox