Re: Slow select, insert, update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Paul Langard <pjl(at)intercellsolutions(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow select, insert, update
Date: 2004-08-10 18:18:05
Message-ID: 181.1092161885@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Paul Langard <pjl(at)intercellsolutions(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bill Montgomery 2004-08-10 18:49:29 Re: Column order performance
Previous Message pgsql 2004-08-10 18:04:52 Re: [HACKERS] fsync vs open_sync