Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C20509F99E1 for ; Mon, 24 Sep 2007 12:29:29 -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 81634-07 for ; Mon, 24 Sep 2007 12:29:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by postgresql.org (Postfix) with ESMTP id AF0AF9F9DB2 for ; Mon, 24 Sep 2007 12:29:24 -0300 (ADT) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (vanquish.pitbpa0.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Mon, 24 Sep 2007 11:29:07 -0400 id 00056427.46F7D7C3.00006C76 Date: Mon, 24 Sep 2007 11:29:07 -0400 From: Bill Moran To: "=?ISO-8859-1?Q?\"G=E1bor_Farkas\"?=" Cc: Heikki Linnakangas , pgsql-performance@postgresql.org Subject: Re: select count(*) performance (vacuum did not help) Message-Id: <20070924112907.cbede7e6.wmoran@collaborativefusion.com> In-Reply-To: <46F7D453.4050908@nekomancer.net> References: <46F7C494.1050604@nekomancer.net> <46F7C9F1.1080805@enterprisedb.com> <46F7D207.3000901@nekomancer.net> <46F7D2C7.70105@enterprisedb.com> <46F7D453.4050908@nekomancer.net> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/424 X-Sequence-Number: 26969 In response to "G=E1bor Farkas" : > Heikki Linnakangas wrote: > > G=E1bor Farkas wrote: > >> > >> if i do a full vacuum to that table only, will the database still serve > >> data from the other tables at a normal speed? > >=20 > > Yes. The extra I/O load vacuum full generates while it's running might > > disrupt other activity, though. > >=20 >=20 > i see. >=20 > will i achieve the same thing by simply dropping that table and=20 > re-creating it? Yes. Once you've done so, keep up the vacuum schedule you've already established. You may want to (as has already been suggested) explicitly vacuum this table after large delete operations as well. --=20 Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023