Re: Table PARTITION - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Table PARTITION
Date
Msg-id 4255299B.3080101@archonet.com
Whole thread Raw
In response to Re: Table PARTITION  (Sean Davis <sdavis2@mail.nih.gov>)
Responses Re: Table PARTITION  (Enrico Weigelt <weigelt@metux.de>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Table PARTITION
Next
From: Harald Fuchs
Date:
Subject: Re: DROP TYPE without error?