Re: vacuum in pg9beta4 much slower than in 8.4 - Mailing list pgsql-testers

From Mario Splivalo
Subject Re: vacuum in pg9beta4 much slower than in 8.4
Date
Msg-id 4C690609.5030306@megafon.hr
Whole thread Raw
In response to Re: vacuum in pg9beta4 much slower than in 8.4  (Greg Smith <greg@2ndquadrant.com>)
Responses Re: vacuum in pg9beta4 much slower than in 8.4  (Josh Berkus <josh@agliodbs.com>)
List pgsql-testers
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

pgsql-testers by date:

Previous
From: Greg Smith
Date:
Subject: Re: vacuum in pg9beta4 much slower than in 8.4
Next
From: Josh Berkus
Date:
Subject: Re: vacuum in pg9beta4 much slower than in 8.4