Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 21A059FA1A7 for ; Wed, 6 Dec 2006 13:21:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 58440-09 for ; Wed, 6 Dec 2006 13:20:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 9E2759F9F0E for ; Wed, 6 Dec 2006 13:20:47 -0400 (AST) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Wed, 6 Dec 2006 17:20:42 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 06 Dec 2006 11:20:43 -0600 Subject: Re: VACUUM FULL does not works....... From: Scott Marlowe To: asif ali Cc: pgsql-performance@postgresql.org In-Reply-To: <155293.25526.qm@web58414.mail.re3.yahoo.com> References: <155293.25526.qm@web58414.mail.re3.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1165425643.14565.471.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 06 Dec 2006 11:20:43 -0600 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/130 X-Sequence-Number: 22186 On Wed, 2006-12-06 at 11:07, asif ali wrote: > Hi, > I have a "product" table having 350 records. It takes approx 1.8 > seconds to get all records from this table. I copies this table to a > "product_temp" table and run the same query to select all records; and > it took 10ms(much faster). > I did "VACUUM FULL" on "product" table but It did not work. > > I checked the file size of these two tables. > "product" table's file size is "32mb" and > "product_temp" table's file size is "72k". > > So, it seems that "VACUUM FULL" is not doing anything. > Please suggest. More than likely you've got a long running transaction that the vacuum can't vacuum around.