From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: VACUUM slow on small table
Date: Tue, 08 Apr 2003 17:41:16 GMT
Message-ID: <16972d7d885d23dbf446d7bdba1f3ccc@news.teranews.com> (raw)
Environment: Postgres 7.2.3 under Linux (RH 7.3, 2.4 kernel)
We have a table used as a job queue by several background applications.
This table gets around 25K inserts and deletes per day, with something
like another 25K updates of each of several columns. All this activity
causes the indexes to be nearly useless, unless the table is VACUUMed
very frequently. At present, this amounts to around every 5-10 minutes
(it's actually based on activity in the table, but it works out to around
that).
The table undergoes VACUUM FULL every night. However, it still shows
hundreds of thousands of tuples after such vacuuming.
Today, the normal VACUUM took upwards of 15 minutes to perform, instead
of the usual handful of seconds. I finally threw up my hands, dumped the
table with pg_dump, dropped it, and re-created it.
What's going on? Doesn't VACUUM under 7.2.3 do a thorough job of clearing
up deleted rows? Should I REINDEX this table nightly as well? Does
drop and recreate clear things up even better?
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
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: jboes@nexcerpt.com
Subject: Re: VACUUM slow on small table
In-Reply-To: <16972d7d885d23dbf446d7bdba1f3ccc@news.teranews.com>
References: <16972d7d885d23dbf446d7bdba1f3ccc@news.teranews.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