Re: Long running queries degrade performance - Mailing list pgsql-performance

From Mike Nolan
Subject Re: Long running queries degrade performance
Date
Msg-id 200404161546.i3GFk3p3010490@gw.tssi.com
Whole thread Raw
In response to Long running queries degrade performance  (Chris Kratz <chris.kratz@vistashare.com>)
Responses Re: Long running queries degrade performance
List pgsql-performance
> We have a web app with a postgres backend.  Most queries have subsecond
> response times through the web even with high usage.  Every once in awhile
> someone will run either an ad-hoc query or some other long running db
> process.

Are you sure it is postgres where the delay is occurring?  I ask this
because I also have a web-based front end to postgres, and while most of
the time the queries respond in about a second every now and then I see
one that takes much longer, sometimes 10-15 seconds.

I've seen this behavior on both my development system and on the
production server.

The same query a while later might respond quickly again.

I'm not sure where to look for the delay, either, and it is intermittent
enough that I'm not even sure what monitoring techniques to use.
--
Mike Nolan

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Horribly slow hash join
Next
From: Tom Lane
Date:
Subject: Re: Horribly slow hash join