pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Langard <pjl@intercellsolutions.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow select, insert, update
Date: Tue, 10 Aug 2004 14:18:05 -0400
Message-ID: <181.1092161885@sss.pgh.pa.us> (raw)
In-Reply-To: <B668647A-EA24-11D8-9D1D-000A95B97268@intercellsolutions.com>
References: <B668647A-EA24-11D8-9D1D-000A95B97268@intercellsolutions.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <181.1092161885@sss.pgh.pa.us>
Permalink:  ../181.1092161885@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/181.1092161885@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pjl@intercellsolutions.com
  Subject: Re: Slow select, insert, update
  In-Reply-To: <181.1092161885@sss.pgh.pa.us>

* 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