Re: [ADMIN] Move tables to tablespace

2008-10-21 Thread praveen
Yes you can do this using following commands. For tables:- select ' alter table '||tablename||' set tablespace ;' from pg_tables where schemaname='' and tableowner='< mention table owner here >'; For index :- select ' alter index '||indexname||' set tablespace ;' from pg_indexes where schemanam

Re: [ADMIN] Move tables to tablespace

2008-10-20 Thread Scott Marlowe
On Mon, Oct 20, 2008 at 8:10 AM, Campbell, Lance <[EMAIL PROTECTED]> wrote: > I would like to have an SQL statement that would move all of the tables and > indexes found within a particular schema to a particular tablespace. Is > there a way I can do this? I think you'll have to write a script (e