Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C43A79FBDF4 for ; Tue, 8 May 2007 19:06:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 72686-04 for ; Tue, 8 May 2007 19:06:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 076559FBD9B for ; Tue, 8 May 2007 19:06:10 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1HlXou-0004cg-9V for pgsql-performance@postgresql.org; Wed, 09 May 2007 00:06:08 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1HlXou-0002DF-00 for ; Wed, 09 May 2007 00:06:08 +0200 Date: Wed, 9 May 2007 00:06:08 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE? Message-ID: <20070508220608.GA8457@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <20070508215213.GC24167@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070508215213.GC24167@alvh.no-ip.org> X-Operating-System: Linux 2.6.20.4 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/147 X-Sequence-Number: 24537 On Tue, May 08, 2007 at 05:52:13PM -0400, Alvaro Herrera wrote: >> I am trying to follow a message thread. One guy says we should be running >> vacuum analyze daily and the other says we should be running vacuum multiple >> times a day. I have tried looking for what a vacuum analyze is to help me >> understand but no luck. > VACUUM ANALYZE is like VACUUM, except that it also runs an ANALYZE > afterwards. Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples, as compared to the random selection employed by ANALYZE? /* Steinar */ -- Homepage: http://www.sesse.net/