Re: Moving a table to another directory

Поиск
Список
Период
Сортировка
От Milen A. Radev
Тема Re: Moving a table to another directory
Дата
Msg-id 45C79018.2080101@radev.net
обсуждение исходный текст
Ответ на Moving a table to another directory  ("Ezequiel Luis Pellettieri" <ezequiel.pellettieri@gmail.com>)
Ответы Re: Moving a table to another directory  ("Ezequiel Luis Pellettieri" <ezequiel.pellettieri@gmail.com>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Ezequiel Luis Pellettieri"
Дата:
Сообщение: Moving a table to another directory
Следующее
От: Joshua Kramer
Дата:
Сообщение: Re: Backup Strategies?