Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DC9896324D6 for ; Mon, 16 Aug 2010 06:43:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65901-09 for ; Mon, 16 Aug 2010 09:43:25 +0000 (UTC) X-Greylist: delayed 00:09:20.230346 by SQLgrey-1.7.6 Received: from megafon.hr (megafon.hr [213.202.104.5]) by mail.postgresql.org (Postfix) with ESMTP id 3EB69632B89 for ; Mon, 16 Aug 2010 06:43:26 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by megafon.hr (Postfix) with ESMTP id B7BC3250089; Mon, 16 Aug 2010 11:34:03 +0200 (CEST) X-Virus-Scanned: ClamAV at megafon.hr Received: from megafon.hr ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YuC+pi91H7Pi; Mon, 16 Aug 2010 11:34:01 +0200 (CEST) Received: from [192.168.1.94] (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mike) by megafon.hr (Postfix) with ESMTPSA id 6FFC5250085; Mon, 16 Aug 2010 11:34:01 +0200 (CEST) Message-ID: <4C690609.5030306@megafon.hr> Date: Mon, 16 Aug 2010 11:34:01 +0200 From: Mario Splivalo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Greg Smith CC: pgsql-testers@postgresql.org Subject: Re: vacuum in pg9beta4 much slower than in 8.4 References: <4C6801B4.5050202@megafon.hr> <4C68DE52.70001@2ndquadrant.com> In-Reply-To: <4C68DE52.70001@2ndquadrant.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/16 X-Sequence-Number: 171 On 08/16/2010 08:44 AM, Greg Smith wrote: > Mario Splivalo wrote: >> I understand that VACUUM FULL in 9.0 copies all the data, but is it OK >> that plain vacuum in 9.0 is slower than in 8.4? > > It should be faster for tables with a lot of junk in them, but the new > VACUUM FULL is likely to be slower for ones that are already clean. > Note that one thing to be aware of is that depending on where you got > your 9.0 from, it may be compiled with debugging and assertion calls > that can slow certain operations down quite a bit. If you try this at a > command prompt: > > postgres=# show debug_assertions; > debug_assertions > ------------------ > on > > And that's on, you can expect that copy of 9.0 to be significantly > slower at a number of things than a similar 8.4. I downloaded source and compiled it myself, this is excerpt from the config.log: enable_debug='no' enable_dtrace='no' enable_nls='no' enable_profiling='no' postgres=# show debug_assertions; debug_assertions ------------------ off (1 row) Yes, I run the tests on clean tables. I run VACUUM FULL, and after that I mesured how long it takes for VACUUM ANALYZE and VACUUM ANALYZE FULL. So, it is ok for VACUUM FULL (on clean tables) on 9.0b4 to be six times slower than on 8.4. But is it ok for plain VACUUM to be two times slower? Mike