the number of child tables --table partitioning - Mailing list pgsql-performance

From Jian Shi
Subject the number of child tables --table partitioning
Date
Msg-id DA4F4F897807834DBADB546A8F635997C6B4@CH1PRD0502MB099.namprd05.prod.outlook.com
Whole thread Raw
Responses Re: the number of child tables --table partitioning  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance

Hey,

 

  Is there a suggested number of child tables for table partitioning, I ran a stress test on a master

table (with 800 thousand rows), trying to create 500,000 child tables for it, each child table has 2

indexes and 3 constraints (Primary key and foreign key). I wrote a script to do it: after 17 hours,

only 7600 child tables are created.

 

  The script is still running, I can see that one child tables is created about every minute. The CPU

Usage is 100%. The query speed is really slow now (I set constraint_exclusion=on).

 

  This stress test is for the partition plan I’m going to make, since we don’t want to add another

Field just for partitioning. So is there something I did wrong? Or postgres cannot handle too many

Child tables? That way I need to come up with a new partition plan.

 

  The system is 32-bit Linux, dual core, 4G memory. Postgres version is 8.1.21.

 

Thanks,

John

 

 

 

pgsql-performance by date:

Previous
From: Claudio Freire
Date:
Subject: Re: Select se bloquea
Next
From: "Kevin Grittner"
Date:
Subject: Re: the number of child tables --table partitioning