pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Sean Davis <sdavis2@mail.nih.gov>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Cc: dpandey@secf.com
Subject: Re: Table PARTITION
Date: Thu, 07 Apr 2005 13:37:47 +0100
Message-ID: <4255299B.3080101@archonet.com> (raw)
In-Reply-To: <e5f9c6fea13bb95521003dbdb65ad5f2@mail.nih.gov>
References: <20050407114136.17B7E53AA5@svr1.postgresql.org>
	<42552244.5050603@archonet.com>
	<e5f9c6fea13bb95521003dbdb65ad5f2@mail.nih.gov>

Sean Davis wrote:
> This is a totally selfish question, but IF someone has a few minutes, 
> could he/she explain why table partitioning is such an important tool?

Say you have a large log-table, you could partition it by month. If most 
queries only search the last month or two, a lot of your partitioned 
data could be moved to cheaper/slower disks (via tablespaces).

After (say) 24 months, you can start dropping the oldest partitions, and 
this should take place without affecting any other partitions.

How you partition your data depends on how you plan to access it. If you 
don't query your log-tables by date there's not much point in 
partitioning by date.
--
   Richard Huxton
   Archonet Ltd



view thread (10+ messages)  latest in thread

Message-ID: <4255299B.3080101@archonet.com>
Permalink:  ../4255299B.3080101@archonet.com/
Also on:    postgresql.org/message-id/4255299B.3080101@archonet.com

 · 

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-sql@postgresql.org
  Cc: dev@archonet.com, sdavis2@mail.nih.gov, dpandey@secf.com
  Subject: Re: Table PARTITION
  In-Reply-To: <4255299B.3080101@archonet.com>

* 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