Re: Auto creation of Partitions

Поиск
Список
Период
Сортировка
От NikhilS
Тема Re: Auto creation of Partitions
Дата
Msg-id d3c4af540703082218k1bf6a0ecw784bfb023eaab8b5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Auto creation of Partitions  (Shane Ambler <pgsql@Sheeky.Biz>)
Ответы Re: Auto creation of Partitions  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
Hi,

On 3/9/07, Shane Ambler <pgsql@sheeky.biz> wrote:

> Note to Nikhil: Make sure the new syntax doesn't prevent partitions from
> being placed upon multiple tablespaces in some manner, at CREATE TABLE
> time.

What if the syntax was something like -

CREATE TABLE tabname (
     ...
     ...
  ) PARTITION BY
  HASH(expr)
| RANGE(expr)
| LIST(expr)
[PARTITIONS num_partitions] /* will apply to HASH only for now*/
[PARTITION partition_name CHECK(...) [USING TABLESPACE tblspcname],
  PARTITION partition_name CHECK(...) [USING TABLESPACE tblspcname]
  ...
];


And (if we use the ALTER TABLE to add partitions)

ALTER TABLE tabname
ADD PARTITION partition_name CHECK(...)
[USING TABLESPACE tblspcname];


We could as well drop the USING part.

Regards,
Nikhils
--
EnterpriseDB               http://www.enterprisedb.com

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: who gets paid for this
Следующее
От: NikhilS
Дата:
Сообщение: Re: Auto creation of Partitions