pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow Copy 7.3 Schemas?
2+ messages / 2 participants
[nested] [flat]
* How Copy 7.3 Schemas?
@ 2003-01-15 12:38 Lex <groups@homerlex.mailshell.com>
0 siblings, 1 reply; 2+ messages in thread
From: Lex @ 2003-01-15 12:38 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How Copy 7.3 Schemas?
@ 2003-01-16 06:57 Rajesh Kumar Mallah. <mallah@trade-india.com>
parent: Lex <groups@homerlex.mailshell.com>
0 siblings, 0 replies; 2+ messages in thread
From: Rajesh Kumar Mallah. @ 2003-01-16 06:57 UTC (permalink / raw)
To: Lex <groups@homerlex.mailshell.com>; pgsql-admin
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-01-16 06:57 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15 12:38 How Copy 7.3 Schemas? Lex <groups@homerlex.mailshell.com>
2003-01-16 06:57 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
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