Re: error-free disabling of individual child partition
- From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
- To: Simon Riggs <simon(at)2ndquadrant(dot)com>
- Cc: Csaba Nagy <nagy(at)ecircle-ag(dot)com>, Hannu Krosing <hannu(at)skype(dot)net>, Zeugswetter Andreas DCP SD <ZeugswetterA(at)spardat(dot)at>, Andrew Dunstan <andrew(at)dunslane(dot)net>, April Lorenzen <outboundindex(at)gmail(dot)com>, postgres hackers <pgsql-hackers(at)postgresql(dot)org>
- Subject: Re: error-free disabling of individual child partition
- Date: Tue, 23 May 2006 11:31:05 -0400
- Message-id: <8849(dot)1148398265(at)sss(dot)pgh(dot)pa(dot)us>
Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> Do we need the ALTER keyword? That isn't used anywhere apart from
> manipulating columns. i.e.
> ALTER TABLE childN INHERITS DROP old_parent;
> ALTER TABLE childN INHERITS ADD new_parent;
At that point it seems like it'd read more naturally the other way
round:
ALTER TABLE childN DROP INHERITS old_parent;
ALTER TABLE childN ADD INHERITS new_parent;
although I'm not sure if this would create a parser conflict against
ADD/DROP COLUMN.
regards, tom lane
Home |
Main Index |
Thread Index