How to move a tablespace?

Поиск
Список
Период
Сортировка
От Chris Hoover
Тема How to move a tablespace?
Дата
Msg-id 1d219a6f0706221114t25ddf96djf62297a8f1428cc2@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to move a tablespace?  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-admin
How do you correctly move a tablespace? 

I am thinking this would be the process:
1.  Cleanly shutdown Postgres
2.  Move tablespace directory and all contents to new location
3.  Create a symlink from the new location back to the old location
4.  Restart Postgres

Would that be correct?  Or is there a better way.

Thanks,

Chris

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

Предыдущее
От: Erik Jones
Дата:
Сообщение: Re: [GENERAL] Can I backup/restore a database in a sql script?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: How to move a tablespace?