Re: Table PARTITION

From: Richard Huxton <dev(at)archonet(dot)com>
To: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
Cc: 'PostgreSQL' <pgsql-sql(at)postgresql(dot)org>, dpandey(at)secf(dot)com
Subject: Re: Table PARTITION
Date: 2005-04-07 12:37:47
Message-ID: 4255299B.3080101@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message TJ O'Donnell 2005-04-07 13:44:22 Re: 9.17.5. Row-wise Comparison
Previous Message Harald Fuchs 2005-04-07 12:37:45 Re: DROP TYPE without error?