Re: error-free disabling of individual child partition - Mailing list pgsql-hackers

From Csaba Nagy
Subject Re: error-free disabling of individual child partition
Date
Msg-id 1148394570.3114.45.camel@coppola.muc.ecircle.de
Whole thread Raw
In response to Re: error-free disabling of individual child partition  (Hannu Krosing <hannu@skype.net>)
Responses Re: error-free disabling of individual child partition  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
> ALTER TABLE childN ALTER INHERITS DROP (parent);
> ALTER TABLE childN ALTER INHERITS ADD (parent);

Wouldn't it be possible to allow the ADD/DROP to happen in the same
statement, like:

ALTER TABLE childN ALTER INHERITS DROP crt_parent ADD new_parent;

or:

ALTER TABLE childN ALTER INHERITS DROP crt_parent, ALTER INHERITS ADD
new_parent;

That would still make it one statement, but more explicit. And it would
eliminate the need for parenthesis (I assume they were needed for
supplying more than 1 table to inherit/disinherit).

Cheers,
Csaba.





pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: error-free disabling of individual child partition
Next
From: Dave Cramer
Date:
Subject: Re: Performance Issues