Re: move database from the default tablespace to a new one?
В списке pgsql-general по дате отправления:
| От | Guillaume Lelarge |
|---|---|
| Тема | Re: move database from the default tablespace to a new one? |
| Дата | |
| Msg-id | 482DA501.4070605@lelarge.info обсуждение исходный текст |
| Ответ на | move database from the default tablespace to a new one? ("Anton Melser" <melser.anton@gmail.com>) |
| Список | pgsql-general |
Anton Melser a écrit :
> Is this possible? I have a db that has been living in the default
> tablespace, and I am trying to separate out the transaction logs (and
> log archiving) and the data. It seems that tablespaces are the way to
> go... but the database exists and I need to separate them out. Any
> pointers?
Create a tablespace and move each individual relations of this database
in the new tablespace :
* ALTER TABLE ... SET TABLESPACE ...
http://www.postgresql.org/docs/8.3/interactive/sql-altertable.html
* ALTER INDEX ... SET TABLESPACE ...
http://www.postgresql.org/docs/8.3/interactive/sql-alterindex.html
Regards.
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера