Re: Partitioning and performance

Поиск
Список
Период
Сортировка
От Ravi Krishna
Тема Re: Partitioning and performance
Дата
Msg-id CACER=P30_XCxqQu35jCT+Vewy60exjhFhpH=iKPf1KvgxR9WEg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Partitioning and performance  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On Thu, May 28, 2015 at 12:42 PM, Melvin Davidson <melvin6925@gmail.com> wrote:
>
> Generally, when you partition, data should only be in child tables, and the parent table should be empty, otherwise
youdefeat the purpose of parttioning.` 

yes of course the parent table is empty. The trigger on insert is
redirecting it to the proper child table.

select count(*) from only tstesting.account ;
 count
-------
     0
(1 row)

select count(*) from only tstesting.account_part1 ;
 count
-------
 83659
(1 row)

select count(*) from only tstesting.account_part5 ;
 count
-------
 83659
(1 row)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Partitioning and performance
Следующее
От: Ivann Ruiz
Дата:
Сообщение: WAL Streaming Failure PostgreSQL 9.4