Search Postgresql Archives

Re: Strange slow database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Mitchell <david.mitchell@xxxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux