Re: [HACKERS] table partioning performance - Mailing list pgsql-performance

From Simon Riggs
Subject Re: [HACKERS] table partioning performance
Date
Msg-id 1168631454.3990.129.camel@silverbirch.site
Whole thread Raw
In response to Re: [HACKERS] table partioning performance  ("Jim C. Nasby" <jim@nasby.net>)
List pgsql-performance
On Thu, 2007-01-11 at 15:01 -0600, Jim C. Nasby wrote:

> I'm wondering if you see any issues with COPYing into a partitioned
> table that's using triggers instead of rules to direct data to the
> appropriate tables?

The data demographics usually guides you towards what to do.

You could COPY into the table that would receive most rows and use
before triggers to INSERT into the other tables, rather than the main
one. I'd be surprised if that was very fast for an even distribution
though. It could well be faster if you have a small number of rows into
a large number of targets because that would be quicker than re-scanning
a temp table repeatedly just to extract a few rows each time.

--
  Simon Riggs
  EnterpriseDB   http://www.enterprisedb.com



pgsql-performance by date:

Previous
From: "Carlos H. Reimer"
Date:
Subject: RES: Improving SQL performance
Next
From: Mark Dobbrow
Date:
Subject: Large table performance