Re: Is there an easy and safe way to migrate a database to a new tablespace?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Is there an easy and safe way to migrate a database to a new tablespace?
Дата
Msg-id dcc563d10712031322v5bf57efcj7060881beb67504a@mail.gmail.com
обсуждение исходный текст
Ответ на Is there an easy and safe way to migrate a database to a new tablespace?  ("David Young" <randomfire@gmail.com>)
Ответы Re: Is there an easy and safe way to migrate a database to a new tablespace?  (Aldor <aldnin@yahoo.de>)
Список pgsql-admin
On Nov 26, 2007 3:05 PM, David Young <randomfire@gmail.com> wrote:
> Hi,
>
> I recently converted to using a postgresql engine that support tablespaces.
> There's a database that I would like to move to a new tablespace for
> performance reasons.  What is the safe and correct way of doing this?  The
> documentation is a bit sketchy on this.

I think you'd have to first set a new default_tablespace for the db,
then you'd have to write a script to go through each object and move
it with an alter (table|index) to the new tablespace.

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

Предыдущее
От: "Tommy Cheng"
Дата:
Сообщение: How to identify the current WAL segment file
Следующее
От: KADDBA
Дата:
Сообщение: WAL archiving hangs due to missing WAL segment