Re: Syntax for partitioning

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: Syntax for partitioning
Дата
Msg-id 20091125130116.9292.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Syntax for partitioning  (Emmanuel Cecchet <manu@asterdata.com>)
Ответы Re: Syntax for partitioning
Список 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 по дате отправления:

Предыдущее
От: Emmanuel Cecchet
Дата:
Сообщение: Re: Syntax for partitioning
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: SE-PgSQL patch review