Re: ADD/DROP INHERITS - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: ADD/DROP INHERITS
Date
Msg-id 448894EB.6030304@dunslane.net
Whole thread Raw
In response to Re: ADD/DROP INHERITS  (Simon Riggs <simon@2ndquadrant.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work
Next
From: Greg Stark
Date:
Subject: Re: ADD/DROP INHERITS