Re: Partitioning and performance - Mailing list pgsql-general

From Ravi Krishna
Subject Re: Partitioning and performance
Date
Msg-id CACER=P30_XCxqQu35jCT+Vewy60exjhFhpH=iKPf1KvgxR9WEg@mail.gmail.com
Whole thread Raw
In response to Re: Partitioning and performance  (Melvin Davidson <melvin6925@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Partitioning and performance
Next
From: Ivann Ruiz
Date:
Subject: WAL Streaming Failure PostgreSQL 9.4