X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id CDDF0D1B481 for ; Thu, 5 Feb 2004 02:12:56 +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 58486-02 for ; Wed, 4 Feb 2004 22:12:53 -0400 (AST) Received: from mailr-1.tiscali.it (mailr-1.tiscali.it [212.123.84.81]) by svr1.postgresql.org (Postfix) with ESMTP id 04A03D1CCCF for ; Wed, 4 Feb 2004 22:12:51 -0400 (AST) Received: from ppp-82-84-56-186.cust-adsl.tiscali.it (HELO alphaville) (82.84.56.186) by mailr-1.tiscali.it with ESMTP; 05 Feb 2004 03:12:55 +0100 Message-Id: <2s28b9$kqpdm@mailr-1.tiscali.it> X-BrightmailFiltered: true Reply-To: From: "Edoardo Ceccarelli" To: "'Sam Barnett-Cormack'" Cc: "'scott.marlowe'" , Subject: R: R: slow seqscan after vacuum analize Date: Thu, 5 Feb 2004 03:10:13 +0100 Organization: expot.it MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcPrgpS69SHVYr5vQTmHxrCmJvQZ3wACf3UQ In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/96 X-Sequence-Number: 12270 > > AFTER (actual db) > > portaportese=# explain analyze SELECT * FROM utente where > luogorilasciodoc='ciao'; > > QUERY PLAN > > > > > ---------------------------------------------------------------------- > > ---------------- > > -------------------- > > Seq Scan on utente (cost=0.00..92174.50 rows=3 width=724) (actual > > time=705.41..6458.19 rows=15 loops=1) > > Filter: (luogorilasciodoc = 'ciao'::bpchar) Total > runtime: 6458.29 > > msec > > (3 rows After a VACUUM FULL ANALYZE: portaportese=# explain analyze SELECT * FROM utente where luogorilasciodoc='ciao'; QUERY PLAN -------------------------------------------------------------------------------------- -------------------- Seq Scan on utente (cost=0.00..41329.21 rows=154 width=724) (actual time=91.61..751.28 rows=15 loops=1) Filter: (luogorilasciodoc = 'ciao'::bpchar) Total runtime: 751.35 msec Things are better now! :) it surely was because i have used the normal vacuum...