Re: Syntax for partitioning - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Syntax for partitioning
Date
Msg-id 407d949e0910292120k46766aadi14f07e7ec89d5c7e@mail.gmail.com
Whole thread Raw
In response to Re: Syntax for partitioning  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Syntax for partitioning  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
On Thu, Oct 29, 2009 at 7:14 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> CREATE TABLE does not require PARTITION to be a reserved keyword,
>> but there are conflicts in ALTER TABLE ADD/DROP PARTITION:
>>
>>  * ALTER TABLE ... DROP [COLUMN]  name [CASCADE | RESTRICT]
>>  * ALTER TABLE ... DROP PARTITION name [CASCADE | RESTRICT]
>>
>> There are some solutions:

Do we need a DROP PARTITION command at all? What would it even do?
Drop the partition from the parent table and throw it away in one
step? I think in actual practice people usually remove the partition
from the parent table first, then do things like archive it before
actually throwing it away.


--
greg


pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: Syntax for partitioning
Next
From: Tom Lane
Date:
Subject: Re: grant with hierarchy option