From: Jim C. Nasby <jnasby@pervasive.com>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: autovacuum for large periodic deletes
Date: Wed, 17 May 2006 16:33:16 -0500
Message-ID: <20060517213316.GB42612@pervasive.com> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF045AF177@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF045AF177@ca-mail1.cis.local>
On Wed, May 17, 2006 at 01:39:35PM -0700, Sriram Dandapani wrote:
> About 5-10 million rows stay after deletion. There are a few other
> tables where the daily deletion totals about 3-6 million.
The default autovac settings will only vacuum a table after 40% of the
rows are dead. That seems pretty high to me, so I regularly recommend
cutting all the thresholds and scale factors in half.
> Would a vacuum full/cluster affect other operations. These tables have a
> 24x7 high data insertion rate.
VACUUM FULL and CLUSTER both aquire exclusive locks.
BTW, it sounds like table partitioning might be useful for you. It would
allow you to setup a partition for each day, and then drop one day's
worth of data very quickly.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jnasby@pervasive.com, sdandapani@counterpane.com, alvherre@commandprompt.com
Subject: Re: autovacuum for large periodic deletes
In-Reply-To: <20060517213316.GB42612@pervasive.com>
References: <6992E470F12A444BB787B5C937B9D4DF045AF177@ca-mail1.cis.local> <20060517213316.GB42612@pervasive.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