Auto Partitioning Patch - WIP version 1

Поиск
Список
Период
Сортировка
От NikhilS
Тема Auto Partitioning Patch - WIP version 1
Дата
Msg-id d3c4af540703292358s8ed731el7771ab14083aa610@mail.gmail.com
обсуждение исходный текст
Ответы Re: Auto Partitioning Patch - WIP version 1  (Bruce Momjian <bruce@momjian.us>)
Re: Auto Partitioning Patch - WIP version 1  (Simon Riggs <simon@2ndquadrant.com>)
Re: Auto Partitioning Patch - WIP version 1  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
Hi,

Please find attached the WIP version 1 of the auto partitioning patch. There was discussion on this a while back on -hackers at:
http://archives.postgresql.org/pgsql-hackers/2007-03/msg00375.php

Please note that this patch tries to automate the activities that currently are carried out manually. It does nothing fancy beyond that for now. There were a lot of good suggestions, I have noted them down but for now I have tried to stick to the initial goal of automating existing steps for providing partitioning.

Things that this patch does:

i) Handle new syntax to provide partitioning:

CREATE TABLE tabname (
     ...
  ) PARTITION BY
   RANGE(ColId)
 | LIST(ColId)
 (
 PARTITION partition_name CHECK(...),
 PARTITION partition_name CHECK(...)
  ...
);

ii)
Create master table.
iii) Create children tables based on the number of partitions specified and make them inherit from the master table.

The following things are TODOs:

iv) Auto generate rules using the checks mentioned for the partitions, to handle INSERTs/DELETEs/UPDATEs to navigate them to the appropriate child. Note that checks specified directly on the master table will get inherited automatically.
v) Based on the PRIMARY, UNIQUE information specified, pass it on to the children tables.

vi) [stretch goal] Support HASH partitions

Will try to complete the above mentioned TODOs as soon as is possible.

Comments, feedback appreciated.

Thanks and Regards,
Nikhils
--
 
EnterpriseDB               http://www.enterprisedb.com
Вложения

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

Предыдущее
От: Koichi Suzuki
Дата:
Сообщение: Re: [HACKERS] Full page writes improvement, code update
Следующее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: [HACKERS] Full page writes improvement, code update