From groups@homerlex.mailshell.com Wed Jan 15 12:39:50 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E3E88475F0D for ; Wed, 15 Jan 2003 07:39:50 -0500 (EST) Received: from relay3.newnetco.com (smtp.newnetco.com [65.112.118.252]) by postgresql.org (Postfix) with ESMTP id 6DCBF47641E for ; Wed, 15 Jan 2003 07:38:25 -0500 (EST) X-Envelope-From: groups@homerlex.mailshell.com X-Envelope-To: Received: from lexlaptop (38.exthosts.amsnet.com [208.31.104.38]) by relay3.newnetco.com (8.12.6/8.12.6) with ESMTP id h0FCcRUL022051 for ; Wed, 15 Jan 2003 07:38:27 -0500 From: "Lex" To: Subject: How Copy 7.3 Schemas? Date: Wed, 15 Jan 2003 07:38:17 -0500 Message-ID: <002e01c2bc92$faadb390$2f01010a@lexlaptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002F_01C2BC69.11D7AB90" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Scanned-By: MIMEDefang 2.24 (www . roaringpenguin . com / mimedefang) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/156 X-Sequence-Number: 6998 This is a multi-part message in MIME format. ------=_NextPart_000_002F_01C2BC69.11D7AB90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=92t see a switch to specify which schema) Right now I an only interested in copying the structures =96 later on it would be nice if I could copy the data as well. =20 Regards ------=_NextPart_000_002F_01C2BC69.11D7AB90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I am playing with the new Schema feature in 7.3.=A0 I wo= uld like to copy the public schema into a new schema.=A0 Is there an easy way t= o do this?=A0 Something I can do with pg_dump (I don’t see a switch to spe= cify which schema)=A0 Right now I an only interested in copying the structures &= #8211; later on it would be nice if I could copy the data as well.

 

Regards

------=_NextPart_000_002F_01C2BC69.11D7AB90-- From mallah@trade-india.com Thu Jan 16 06:52:39 2003 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0A435475B8D for ; Thu, 16 Jan 2003 01:52:39 -0500 (EST) Received: from rtlocal.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id D2FE6475B8C for ; Thu, 16 Jan 2003 01:52:30 -0500 (EST) Received: (qmail 32715 invoked from network); 16 Jan 2003 06:47:11 -0000 Received: from unknown (HELO system67.trade-india-local.com) (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 16 Jan 2003 06:47:11 -0000 From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: "Lex" , Subject: Re: How Copy 7.3 Schemas? Date: Thu, 16 Jan 2003 12:27:34 +0530 User-Agent: KMail/1.5 References: <002e01c2bc92$faadb390$2f01010a@lexlaptop> In-Reply-To: <002e01c2bc92$faadb390$2f01010a@lexlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200301161227.34086.mallah@trade-india.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/164 X-Sequence-Number: 7006 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=92t see a switch to specify which > schema) Right now I an only interested in copying the structures =96 > later on it would be nice if I could copy the data as well. > > > > Regards --=20 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.