X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 062389DD600 for ; Tue, 28 Mar 2006 13:26:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13273-07 for ; Tue, 28 Mar 2006 13:26:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id E9FFE9DCD96 for ; Tue, 28 Mar 2006 13:26:40 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id A356D56408; Tue, 28 Mar 2006 11:26:39 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Tue, 28 Mar 2006 11:26:35 -0600 Date: Tue, 28 Mar 2006 11:26:35 -0600 From: "Jim C. Nasby" To: Brendan Duddridge Cc: Luke Lonergan , G?briel ?kos , pgsql-performance@postgresql.org Subject: Re: count(*) performance Message-ID: <20060328172634.GM75181@pervasive.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060328:brendan@clickspace.com::3se+tsfCiIkF3X7i:000000000000000 000000000000000000000000GXuT X-Hashcash: 1:20:060328:llonergan@greenplum.com::Nv5N1zm1otV5GHwX:00000000000000 000000000000000000000000IEPO X-Hashcash: 1:20:060328:akos.gabriel@i-logic.hu::z2LrB1lpeGhpSeiB:00000000000000 000000000000000000000000806D X-Hashcash: 1:20:060328:pgsql-performance@postgresql.org::swPkJfdMa0eEdkuv:00000 000000000000000000000000Ceiu X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200603/548 X-Sequence-Number: 17985 On Mon, Mar 27, 2006 at 12:20:54PM -0700, Brendan Duddridge wrote: > Does that mean that even though autovacuum is turned on, you still > should do a regular vacuum analyze periodically? Doing a periodic vacuumdb -avz and keeping an eye on the last few lines isn't a bad idea. It would also be helpful if there was a log parser that could take a look at the output of a vacuumdb -av and look for any problem areas, such as relations that have a lot of free space in them. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461