Re: error-free disabling of individual child partition

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: error-free disabling of individual child partition
Дата
Msg-id 447210E7.10904@dunslane.net
обсуждение исходный текст
Ответ на Re: error-free disabling of individual child partition tables  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: error-free disabling of individual child partition  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-hackers
Jim C. Nasby wrote:
>
> BEGIN;
> -- Don't do the drop right now, because it might take awhile
> ALTER TABLE tablename RENAME TO delete_tablename;
> ALTER TABLE temporary_tablename RENAME TO tablename;
> COMMIT;
> DROP delete_tablename;
>
>   

What if there are dependencies? Might be better to have a view, which 
everything depends on, and change the view definition from one table to 
another back and forth.

cheers

andrew


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Update on sort-compression stuff
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Porting MSSQL to PGSQL (Was: [OT] MySQL is bad, but THIS