pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedSCHEMA's the easy way?
2+ messages / 2 participants
[nested] [flat]
* SCHEMA's the easy way?
@ 2004-05-19 16:38 Chris Gamache <cgg007@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Chris Gamache @ 2004-05-19 16:38 UTC (permalink / raw)
To: pgsql-sql
I'm planning on dipping my toes into the world of schemata. I have tables,
created in the Public schema, that I'd like to move to the new schema:
SELECT * INTO new.tablename FROM public.tablename;
CREATE SEQUENCE ...;
CREATE INDEX ...;
ALTER TABLE ...;
BLAH ...;
BLAH ...;
BLAH ...;
DROP public.tablename;
REPEAT ...;
REPEAT ...;
REPEAT ...;
VOMIT;
Is there an easier, faster, less user-error-prone way around this?
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: SCHEMA's the easy way?
@ 2004-05-19 17:00 Tom Lane <tgl@sss.pgh.pa.us>
parent: Chris Gamache <cgg007@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2004-05-19 17:00 UTC (permalink / raw)
To: cgg007@yahoo.com; +Cc: pgsql-sql
Chris Gamache <cgg007@yahoo.com> writes:
> I'm planning on dipping my toes into the world of schemata. I have tables,
> created in the Public schema, that I'd like to move to the new schema:
> Is there an easier, faster, less user-error-prone way around this?
pg_dump, edit the "set search_path" commands in the dump script, reload.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-05-19 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 16:38 SCHEMA's the easy way? Chris Gamache <cgg007@yahoo.com>
2004-05-19 17:00 ` Tom Lane <tgl@sss.pgh.pa.us>
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