Re: Strange slow database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Mitchell <david(dot)mitchell(at)telogis(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Strange slow database
Date: 2005-11-17 22:28:57
Message-ID: 19462.1132266537@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Mitchell <david(dot)mitchell(at)telogis(dot)com> writes:
> Recently our databases started to experience a significant slowdown.
> Queries that were taking 500ms now take up to 20 seconds. An insert can
> take 150ms or more. This is strange since we are still hitting indexes
> and we vacuum regularly. Here is the description of our system:

Have you checked to see whether you are encountering table or index
bloat? Your vacuuming policy doesn't sound unreasonable on its face,
but there's no substitute for actually looking at physical file sizes
when you aren't sure what's wrong. Try doing a pg_dump and reload into
a virgin database, then compare file sizes with the original
table-by-table to see if anything is drastically out of line.
Don't forget to look at the system catalogs too.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leif Jensen 2005-11-17 23:36:30 Mambo/Joomla (CMS) on PostgreSQL ?
Previous Message Andrew Sullivan 2005-11-17 22:25:35 Re: Strange slow database