pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jerry Champlin <jchamplin@absolute-performance.com>
Cc: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Is there a way to SubPartition?
Date: Wed, 27 Aug 2008 16:32:34 -0400
Message-ID: <20080827203234.GF4071@alvh.no-ip.org> (raw)
In-Reply-To: <006f01c90882$84f80ff0$8ee82fd0$@com>
References: <48B55A8D.1050209@absolute-performance.com>
	<22840.1219845710@sss.pgh.pa.us>
	<006f01c90882$84f80ff0$8ee82fd0$@com>

Jerry Champlin wrote:
> If it were implemented in such a way that when the top level pruning
> happens, a set of 3 sub partitions is selected from say 18 total and then at
> the next level is selects the 3 matching sub partitions from each matched
> group of 30 then you are only looking at 18+3*30 = 108 instead of 548 checks
> to evaluate <example assumes monthly first level partitioning and daily sub
> partitioning>.  If this is not supported, then we will need to solve the
> problem a different way - probably weekly partitions and refactor the code
> to decrease updates by at least an order of magnitude.  While we are in the
> process of doing this, is there a way to make updates faster?  Postgresql is
> spending a lot of CPU cycles for each HOT update.  We have
> synchronous_commit turned off, commit siblings set to 5, commit_delay set to
> 50,000.

Perhaps you do not realize this, but this is an exciting report to read.
Not many years ago, this kind of system would have been unthinkable.
We've now tuned the system so that people is starting to consider it,
and for a lot of people it is working.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (6+ messages)  latest in thread

Message-ID: <20080827203234.GF4071@alvh.no-ip.org>
Permalink:  ../20080827203234.GF4071@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20080827203234.GF4071@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: alvherre@commandprompt.com, jchamplin@absolute-performance.com, tgl@sss.pgh.pa.us
  Subject: Re: Is there a way to SubPartition?
  In-Reply-To: <20080827203234.GF4071@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox