Re: ALTER xx SET TABLESPACE (was bug in DROP TABLESPACE)

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: ALTER xx SET TABLESPACE (was bug in DROP TABLESPACE)
Дата
Msg-id 40EBAA65.9040209@pse-consulting.de
обсуждение исходный текст
Ответ на Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:

>> Its questionable if these are to be interpreted as just changing the 
>> default tablespace for subsequent creates, or also moving all objects 
>> that were created using the previous tablespace. Since it's 
>> indistinguishable whether an object was created using the default 
>> from schema/database or given a tablespace explicitely (unless 
>> default was 0), I'd opt for version one.
>
>
> I meant option one - I hadn't considered the second.  The thing is 
> though you have to maybe move some stuff on disk as well.

Currently not in case of schema (until we have a placeholder file); for 
database, certainly the directory structure needs to be created and the 
old removed if empty. AFAICS no move of data is necessary.

Regards,
Andreas




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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Nested Transactions, Abort All
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: ALTER xxx SET TABLESPACE (was bug in DROP TABLESPACE)