Skip site navigation (1) Skip section navigation (2)

SCHEMA's the easy way?

From: Chris Gamache <cgg007(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: SCHEMA's the easy way?
Date: 2004-05-19 16:38:32
Message-ID: 20040519163832.88907.qmail@web13806.mail.yahoo.com (view raw or flat)
Thread:
Lists: 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/

In response to

Responses

pgsql-sql by date

Next:From: Tom LaneDate: 2004-05-19 17:00:12
Subject: Re: SCHEMA's the easy way?
Previous:From: Richard HuxtonDate: 2004-05-19 16:33:16
Subject: Re: Function valid only for one table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group