From: Neil Conway <neilc@samurai.com>
To: David Shadovitz <david@www.shadovitz.com>
Cc: pgsql-performance@postgresql.org
Cc: david@shadovitz.com
Subject: Re: Why is VACUUM ANALYZE <table> so slow?
Date: Tue, 16 Dec 2003 17:51:18 -0500
Message-ID: <87brq8l6l5.fsf@mailbox.samurai.com> (raw)
In-Reply-To: <20031209211444.M99946@www.shadovitz.com>
References: <20031209211444.M99946@www.shadovitz.com>
"David Shadovitz" <david@www.shadovitz.com> writes:
> I'm running PG 7.2.2 on RH Linux 8.0.
Note that this version of PostgreSQL is quite old.
> I'd like to know why "VACUUM ANALYZE <table>" is extemely slow (hours) for
> certain tables.
Is there another concurrent transaction that has modified the table
but has not committed? VACUUM ANALYZE will need to block waiting for
it. You might be able to get some insight into this by examining the
pg_locks system view:
http://www.postgresql.org/docs/current/static/monitoring-locks.html
As well as the pg_stat_activity view.
-Neil
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: neilc@samurai.com, david@www.shadovitz.com, david@shadovitz.com
Subject: Re: Why is VACUUM ANALYZE <table> so slow?
In-Reply-To: <87brq8l6l5.fsf@mailbox.samurai.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