X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E9048D1B48F for ; Tue, 9 Dec 2003 21:21:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 23084-03 for ; Tue, 9 Dec 2003 17:21:23 -0400 (AST) Received: from www.smart-start-hosting.com (unknown [38.118.153.169]) by svr1.postgresql.org (Postfix) with ESMTP id 8CE43D1B461 for ; Tue, 9 Dec 2003 17:21:20 -0400 (AST) Received: from shadovitz (localhost [127.0.0.1]) by localhost (8.10.2/8.10.2) with ESMTP id hB9LEim13571; Tue, 9 Dec 2003 13:14:44 -0800 From: "David Shadovitz" To: pgsql-performance@postgresql.org Cc: david@shadovitz.com Subject: Why is VACUUM ANALYZE so slow? Date: Tue, 9 Dec 2003 14:14:44 -0700 Message-Id: <20031209211444.M99946@www.shadovitz.com> X-Mailer: Open WebMail 1.81 20021203 X-OriginatingIP: 206.135.121.30 (david@shadovitz) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/232 X-Sequence-Number: 5092 I'm running PG 7.2.2 on RH Linux 8.0. I'd like to know why "VACUUM ANALYZE
" 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