pg.ddx.io  pgsql-testers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mario Splivalo <mario.splivalo@megafon.hr>
To: Greg Smith <greg@2ndquadrant.com>
Cc: pgsql-testers@postgresql.org
Subject: Re: vacuum in pg9beta4 much slower than in 8.4
Date: Mon, 16 Aug 2010 11:34:01 +0200
Message-ID: <4C690609.5030306@megafon.hr> (raw)
In-Reply-To: <4C68DE52.70001@2ndquadrant.com>
References: <4C6801B4.5050202@megafon.hr>
	<4C68DE52.70001@2ndquadrant.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <4C690609.5030306@megafon.hr>
Permalink:  ../4C690609.5030306@megafon.hr/
Also on:    postgresql.org/message-id/4C690609.5030306@megafon.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-testers@postgresql.org
  Cc: mario.splivalo@megafon.hr, greg@2ndquadrant.com
  Subject: Re: vacuum in pg9beta4 much slower than in 8.4
  In-Reply-To: <4C690609.5030306@megafon.hr>
  References: <4C6801B4.5050202@megafon.hr> <4C68DE52.70001@2ndquadrant.com> <4C690609.5030306@megafon.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox