pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Shadovitz <david@www.shadovitz.com>
To: pgsql-performance@postgresql.org
Cc: david@shadovitz.com
Subject: Why is VACUUM ANALYZE <table> so slow?
Date: Tue, 9 Dec 2003 14:14:44 -0700
Message-ID: <20031209211444.M99946@www.shadovitz.com> (raw)

I'm running PG 7.2.2 on RH Linux 8.0.

I'd like to know why "VACUUM ANALYZE <table>" is extemely slow (hours) for 
certain tables.  Here's what the log file shows when I run this command on 
my "employees" table, which has just 5 columns and 55 records:

VACUUM ANALYZE employees

DEBUG: --Relation employees--
DEBUG: index employees_pkey: Pages 2; Tuples 55: Deleted 0.
   CPU 0.00s/0.00u sec elapsed 0.00 sec.
DEBUG: index emp_dept_id_idx: Pages 2; Tuples 55: Deleted 0.
   CPU 0.00s/0.00u sec elapsed 0.00 sec.
DEBUG: index emp_emp_num_idx: Pages 2; Tuples 55: Deleted 0.
   CPU 0.00s/0.00u sec elapsed 0.00 sec.
DEBUG: recycled transaction log file 00000000000000CC
DEBUG: geqo_main: using edge recombination crossover [ERX]

(When I get a chance I will enable timestamping of log file entries.)

Thanks for any insight.  Please reply to me personally (david@shadovitz.com)
as well as to the list.

-David



view thread (3+ messages)  latest in thread

Message-ID: <20031209211444.M99946@www.shadovitz.com>
Permalink:  ../20031209211444.M99946@www.shadovitz.com/
Also on:    postgresql.org/message-id/20031209211444.M99946@www.shadovitz.com

 · 

reply

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: david@www.shadovitz.com, david@shadovitz.com
  Subject: Re: Why is VACUUM ANALYZE <table> so slow?
  In-Reply-To: <20031209211444.M99946@www.shadovitz.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