Re: best practice for moving millions of rows to child table when setting up partitioning?

Поиск
Список
Период
Сортировка
От Mark Stosberg
Тема Re: best practice for moving millions of rows to child table when setting up partitioning?
Дата
Msg-id ip9r5i$3c2$1@dough.gmane.org
обсуждение исходный текст
Ответ на Re: best practice for moving millions of rows to child table when setting up partitioning?  (Raghavendra <raghavendra.rao@enterprisedb.com>)
Ответы Re: Re: best practice for moving millions of rows to child table when setting up partitioning?  (Greg Smith <greg@2ndQuadrant.com>)
Список pgsql-admin
> Similar posting on partition table, take this inputs before going
> forward with partition table.
>
> http://archives.postgresql.org/pgsql-general/2011-04/msg00808.php
>
> Best solution given by Greg Smith as well Vick.

Thanks for the replies.

Today I reviewed the section on partitioning from Greg's High
Performance book.

I tried out the method of using an "update trigger" on the parent table
to move rows child tables.

In particular, I wanted to check whether the UPDATE statement would
alter all the rows automatically, or if the underlying trigger would
cause all the rows processed a row at a time.

It appears from my test that the result of the UPDATE was going to
appear all at once. I'm worried about the resource implications of
inserting mullions of rows all at once.

Someone else suggested writing a small program to insert the rows in s
smaller chunks. I think that's the approach I'm going to consider taking.

Thanks for the input!

   Mark

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Starting psql without a database?
Следующее
От: Bob Lunney
Дата:
Сообщение: Re: best practice for moving millions of rows to child table when setting up partitioning?