Skip site navigation (1) Skip section navigation (2)

Re: Is there a way to SubPartition?

From: Matthew Wakeling <matthew(at)flymine(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Is there a way to SubPartition?
Date: 2008-08-27 14:10:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Wed, 27 Aug 2008, Jerry Champlin wrote:
> After it's a day old, there are no longer any updates or inserts and we 
> can vacuum it at that point.

A pattern that has worked very well for other people is to have two 
separate tables (or partitions). One contains today's data, and the other 
contains historic data that is no longer updated. Once a day, transfer the 
data between the partitions, and the historic data partition will not need 

Some changes to your code will be needed however.


Vacuums are nothings. We only mention them to let them know we know
they're there.

In response to

pgsql-performance by date

Next:From: Shane AmblerDate: 2008-08-27 16:45:52
Subject: Re: select on 22 GB table causes "An I/O error occured while sending to the backend." exception
Previous:From: Tom LaneDate: 2008-08-27 14:01:50
Subject: Re: Is there a way to SubPartition?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group