Re: How to move a tablespace?

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: How to move a tablespace?
Дата
Msg-id 200706230029.42578.xzilla@users.sourceforge.net
обсуждение исходный текст
Ответ на How to move a tablespace?  ("Chris Hoover" <revoohc@gmail.com>)
Ответы Re: How to move a tablespace?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Friday 22 June 2007 14:14, Chris Hoover wrote:
> 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.
>

ISTM it would be safer to just create a new tablspace within the db and then
move the objects in that tablespace over.

On a side note, this is one reason to make tablespaces on clean mount points,
so that you can swap the disk systems out underneath, but maintain the same
mountpoint, and not let the db care about the difference.

--
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

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

Предыдущее
От: "Chris Hoover"
Дата:
Сообщение: How to move a tablespace?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to move a tablespace?