Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A73D69FB29E for ; Thu, 19 Oct 2006 11:26:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23637-05 for ; Thu, 19 Oct 2006 11:25:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 601EA9FB207 for ; Thu, 19 Oct 2006 11:25:53 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id k9JEPmcI010763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Oct 2006 08:25:51 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id k9JEPmju019607; Thu, 19 Oct 2006 08:25:48 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id k9JEPmr9019606; Thu, 19 Oct 2006 08:25:48 -0600 (MDT) (envelope-from mfuhr) Date: Thu, 19 Oct 2006 08:25:48 -0600 From: Michael Fuhr To: Andrzej Zawadzki Cc: pgsql-performance@postgresql.org Subject: Re: VACUUM FULL ANALYZE on 8.1.4 is slower then on 8.0 Message-ID: <20061019142548.GB19440@winnie.fuhr.org> References: <45377DFB.1000408@wp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45377DFB.1000408@wp.pl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.14 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/400 X-Sequence-Number: 21529 On Thu, Oct 19, 2006 at 03:30:35PM +0200, Andrzej Zawadzki wrote: > After upgrade PostgreSQL from 8.0 to 8.1.4 a VACUUM FULL ANALYZE > process is much slower, from logs: Are you sure you need VACUUM FULL? If you're vacuuming often enough and your free space map settings are adequate then plain VACUUM (without FULL) should suffice for routine use. > 8.0 > [13666][postgres][2006-10-06 01:13:38 CEST][1340121452] LOG: statement: VACUUM FULL ANALYZE; > [13666][postgres][2006-10-06 01:39:15 CEST][0] LOG: duration: 1536862.425 ms > > > 8.1 > [4535][postgres][2006-10-10 01:08:51 CEST][6144112] LOG: statement: VACUUM FULL ANALYZE; > [4535][postgres][2006-10-10 02:04:23 CEST][0] LOG: duration: 3332128.332 ms > > Databases are equal. Equal how? Number of tables? Number of tuples? Disk space used? Activity, especially updates and deletes? All of the above? Have you used VACUUM VERBOSE to see how much work each VACUUM is doing? Is it possible that 8.1 was built with --enable-cassert and 8.0 wasn't? What does "SHOW debug_assertions" show on each server? -- Michael Fuhr