Re: ADD/DROP INHERITS

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: ADD/DROP INHERITS
Дата
Msg-id 448894EB.6030304@dunslane.net
обсуждение исходный текст
Ответ на Re: ADD/DROP INHERITS  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs wrote:
> Based on the test case Tom shows, I think we need to enforce that ADD
> INHERITS will barf if the columns are not in exactly the order they
> would have been in if we add done a CREATE ... INHERITS followed by a
> DROP INHERITS. That wouldn't be a problem if we just say to people, if
> you want to create a new partition do:
>
> CREATE TABLE new_child ... LIKE child;
>
> then later 
>
> ALTER TABLE new_partition ADD INHERITS parent;
>
>   

This seems like a very reasonable restriction. I imagine in the most 
common case at least they will be exact clones.

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: That EXPLAIN ANALYZE patch still needs work
Следующее
От: Greg Stark
Дата:
Сообщение: Re: ADD/DROP INHERITS