Re: Syntax for partitioning - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: Syntax for partitioning
Date
Msg-id 20091125130116.9292.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: Syntax for partitioning  (Emmanuel Cecchet <manu@asterdata.com>)
Responses Re: Syntax for partitioning
List pgsql-hackers
Emmanuel Cecchet <manu@asterdata.com> wrote:

> I think that other databases allows the 
> user to define a tablespace for each partition in the create table 
> statement.

WITH and TABLESPACE clause are supported for each partition.
=# CREATE TABLE parent (...) PARTITION BY (key)   (     PARTITION child_1 VALUES LESS THAN 10 WITH (...) TABLESPACE
tbs_1  );=# CREATE PARTITION child_2 ON parent   VALUES LESS THAN 20 WITH (...) TABLESPACE tbl_2;
 

> Are you also planning to provide partitioning extensions to 'create 
> table as'?

Ah, I forgot that. It would be possible to have the feature.
There are no syntax issues. But it would be done after we support
automatic INSERT routing. We can create the table will partitions,
but tuples are not divided into child partitions because we have
no insert-triggers at the time of CREATE TABLE AS.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Emmanuel Cecchet
Date:
Subject: Re: Syntax for partitioning
Next
From: KaiGai Kohei
Date:
Subject: Re: SE-PgSQL patch review