Re: Table space question

Поиск
Список
Период
Сортировка
От Kevin Kempter
Тема Re: Table space question
Дата
Msg-id 201004021438.16582.kevink@consistentstate.com
обсуждение исходный текст
Ответ на Table space question  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
On Friday 02 April 2010 12:44, akp geek wrote:
> Hi all -
>
>              I have created dump of a database where I have a tablespace
> (data_tblspace ) associated with relations. I have restored to a different
> server. I created the same table space. Now I need to create an other
> database on the same server using the same dump. but I need to have a
> different tablespace for all the relations.
>
>            Can you please suggest?   Do I have to do the restore the
> database to the same tablespace first? and then alter the tablespace?
>
>
> Regards

Maybe something like this (assuming the dump file is in text/sql format):

sed "s/data_tblspace/new_tblspace/g" dump_file > new dump file


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

Предыдущее
От: akp geek
Дата:
Сообщение: Table space question
Следующее
От: zhong ming wu
Дата:
Сообщение: any built-in function to get time in seconds?