Re: Slow select, insert, update - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow select, insert, update
Date
Msg-id 181.1092161885@sss.pgh.pa.us
Whole thread Raw
In response to Slow select, insert, update  (Paul Langard <pjl@intercellsolutions.com>)
List pgsql-performance
Paul Langard <pjl@intercellsolutions.com> writes:
> select count(id) from project
> count
> 9106
> 1 row(s)
> Total runtime: 45,778.813 ms

Yipes.  The only explanation I can think of is tremendous table bloat.
What do you get from "vacuum verbose project" --- in particular, how
many pages in the table?

> ... the database is regularly vaccuumed.

Not regularly enough, perhaps ... or else you need to increase the free
space map size parameters.  In any case you'll probably need to do one
round of "vacuum full" to get this table back within bounds.

            regards, tom lane

pgsql-performance by date:

Previous
From: Bill Montgomery
Date:
Subject: Re: Column order performance
Next
From: Josh Berkus
Date:
Subject: Re: Column order performance