Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CACA99F9A3D for ; Mon, 24 Sep 2007 12:04:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97992-09 for ; Mon, 24 Sep 2007 12:04:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.uptime.at (mail.uptime.at [62.116.87.11]) by postgresql.org (Postfix) with ESMTP id 92A2D9F9E3D for ; Mon, 24 Sep 2007 12:04:51 -0300 (ADT) Received: from [192.168.1.120] (exterminator.ba.uptime.at [195.46.69.54]) by mail.uptime.at (8.13.5/8.13.5) with ESMTP id l8OF4aYt019215; Mon, 24 Sep 2007 17:04:39 +0200 Message-ID: <46F7D207.3000901@nekomancer.net> Date: Mon, 24 Sep 2007 17:04:39 +0200 From: =?ISO-8859-1?Q?G=E1bor_Farkas?= User-Agent: Thunderbird 2.0.0.6 (X11/20070919) MIME-Version: 1.0 To: Heikki Linnakangas CC: pgsql-performance@postgresql.org Subject: Re: select count(*) performance (vacuum did not help) References: <46F7C494.1050604@nekomancer.net> <46F7C9F1.1080805@enterprisedb.com> In-Reply-To: <46F7C9F1.1080805@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.90.2/4376/Mon Sep 24 04:15:24 2007 on mail.uptime.at X-Virus-Status: Clean X-uptime-MailScanner-Information: Please contact uptime Systemloesungen for more Information X-uptime-MailScanner: Clean as a baby X-uptime-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=3.5, required 5.2, BAYES_95 3.50) X-uptime-MailScanner-SpamScore: 3.50 X-MailScanner-From: gabor@nekomancer.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/420 X-Sequence-Number: 26965 Heikki Linnakangas wrote: > Gábor Farkas wrote: >> - but in the past, the cron-job was not in place, so the table's size >> grew to around 800000 entries (in around 80 days) > > That bloated your table, so that there's still a lot of empty pages in > it. VACUUM FULL should bring it back to a reasonable size. Regular > normal non-FULL VACUUMs should keep it in shape after that. > hmm... can a full-vacuum be performed while the database is still "live" (i mean serving requests)? will the db still be able to respond to queries? or in a different way: if i do a full vacuum to that table only, will the database still serve data from the other tables at a normal speed? thanks, gabor