Res: Moving a table to another directory - Mailing list pgsql-admin

From Mario
Subject Res: Moving a table to another directory
Date
Msg-id 435775.50714.qm@web60724.mail.yahoo.com
Whole thread Raw
List pgsql-admin

 
boa tarde,
 
como faço para retirar meu emaio dessa lista de discurssao...
 
se alguem puder me ajudar agradeço
 
obrigado




 



----- Mensagem original ----
De: Milen A. Radev <milen@radev.net>
Para: pgsql-admin@postgresql.org
Enviadas: Segunda-feira, 5 de Fevereiro de 2007 18:14:16
Assunto: Re: [ADMIN] Moving a table to another directory

Ezequiel Luis Pellettieri написа:
> Hi guys I have a big table (25 gb) and a need to move it to another
> directory cos i'm out of space.
> making a symlik will be ok? or I have to do something else
>


1. CREATE TABLESPACE xxx LOCATION 'another_dir'
(http://www.postgresql.org/docs/current/static/sql-createtablespace.html);

2. ALTER TABLE big_table SET TABLESPACE xxx;
(http://www.postgresql.org/docs/current/static/sql-altertable.html)


--
Milen A. Radev


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/

pgsql-admin by date:

Previous
From: Joshua Kramer
Date:
Subject: Re: Backup Strategies?
Next
From: Michael Monnerie
Date:
Subject: Re: destroyed db/index (corruption)