pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shaun Thomas <sthomas@peak6.com>
To: Greg Smith <greg@2ndquadrant.com>
Cc: felix <crucialfelix@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Really really slow select count(*)
Date: Fri, 4 Feb 2011 09:03:49 -0600
Message-ID: <4D4C1555.40209@peak6.com> (raw)
In-Reply-To: <4D4C138C.7010304@2ndquadrant.com>
References: <AANLkTinAJcm5A+i1O_R87aiYyu8N2OWgoaL9RfR=tUR9@mail.gmail.com>
	<4D4C138C.7010304@2ndquadrant.com>

On 02/04/2011 08:56 AM, Greg Smith wrote:

> PostgreSQL version?  If you're running on 8.3 or earlier, I would be
> suspicous that your Free Space Map has been overrun.

That's my first inclination. If he says autovacuum is running, there's 
no way it should be bloating the table that much.

Felix, If you're running a version before 8.4, what is your 
max_fsm_pages setting? If it's too low, autovacuum won't save you, and 
your tables will continue to grow daily unless you vacuum full 
regularly, and I wouldn't recommend that to my worst enemy. ;)

-- 
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas@peak6.com

______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email



view thread (66+ messages)  latest in thread

Message-ID: <4D4C1555.40209@peak6.com>
Permalink:  ../4D4C1555.40209@peak6.com/
Also on:    postgresql.org/message-id/4D4C1555.40209@peak6.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sthomas@peak6.com, greg@2ndquadrant.com, crucialfelix@gmail.com
  Subject: Re: Really really slow select count(*)
  In-Reply-To: <4D4C1555.40209@peak6.com>

* 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