Re: Symbolic Links to Tablespaces

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Symbolic Links to Tablespaces
Дата
Msg-id 483B1CE7.9030201@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Symbolic Links to Tablespaces  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-performance
Tino Wildenhain wrote:
> Heikki Linnakangas wrote:
> ...
>> Shut down the database server, replace the symbolic link in
>> data/pg_tblspc to the new location, and start the server again. The
>> location is also stored in pg_tablespace catalog; you'll need to fix
>> it with "UPDATE pg_tablespace SET spclocation ='/someotherdir/xyz_tbl'
>> WHERE spcname='xyz_tbl'", or pg_dumpall will still show the old location.
>>
> wouldn't alter tablespace be not more easy and less fragile?

Yes. But it requires copying all the data.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Tino Wildenhain
Дата:
Сообщение: Re: Symbolic Links to Tablespaces
Следующее
От: Marinos Yannikos
Дата:
Сообщение: Re: RAID controllers for Postgresql on large setups