Re: table partioning performance - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: table partioning performance
Date
Msg-id 20070110202442.GV12217@nasby.net
Whole thread Raw
In response to Re: table partioning performance  ("Steven Flatt" <steven.flatt@gmail.com>)
Responses Re: table partioning performance
List pgsql-performance
On Mon, Jan 08, 2007 at 03:02:24PM -0500, Steven Flatt wrote:
> We use partitioned tables extensively and we have observed linear
> performance degradation on inserts as the number of rules on the master
> table grows (i.e. number of rules = number of partitions).  We had to come
> up with a solution that didn't have a rule per partition on the master
> table.  Just wondering if you are observing the same thing.

Except for the simplest partitioning cases, you'll be much better off
using a trigger on the parent table to direct inserts/updates/deletes to
the children. As a bonus, using a trigger makes it a lot more realistic
to deal with an update moving data between partitions.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Partitioning
Next
From: "Jim C. Nasby"
Date:
Subject: Re: High update activity, PostgreSQL vs BigDBMS