Re: Partitioning an existing table

Поиск
Список
Период
Сортировка
От Cédric Villemain
Тема Re: Partitioning an existing table
Дата
Msg-id BANLkTim2G4DmG1D-EsNqH=fkxAnZ7RUJfA@mail.gmail.com
обсуждение исходный текст
Ответ на Partitioning an existing table  (Phoenix Kiula <phoenix.kiula@gmail.com>)
Ответы Re: Partitioning an existing table  ("David Johnston" <polobo@yahoo.com>)
Список pgsql-general
2011/4/25 Phoenix Kiula <phoenix.kiula@gmail.com>:
> Hi.
>
> The partitioning documentation in PG is very clear on how to partition
> a new table. Create child tables, and have triggers that manage
> INSERT, UPDATE and DELETE commands.
>
> How about doing this with existing massive tables? (Over 120 million rows)
>
> I could create a new parent table with child tables, and then INSERT
> all these millions of rows to put them into the right partition. But
> is that recommended?

It will be faster to INSERT directly in the good child tables and you
can make multiple INSERT in parrallel (depend of your IO system and
number of tables)

>
> Thanks
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
Cédric Villemain               2ndQuadrant
http://2ndQuadrant.fr/     PostgreSQL : Expertise, Formation et Support

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

Предыдущее
От: Phoenix Kiula
Дата:
Сообщение: Partitioning an existing table
Следующее
От: "David Johnston"
Дата:
Сообщение: Re: Partitioning an existing table