Skip site navigation (1) Skip section navigation (2)

Re: Problems with inconsistant query performance.

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: Matthew Schumacher <matt(dot)s(at)aptalaska(dot)net>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Problems with inconsistant query performance.
Date: 2006-09-28 17:40:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
In response to "Jim C. Nasby" <jim(at)nasby(dot)net>:

> On Thu, Sep 28, 2006 at 11:28:43AM -0400, Bill Moran wrote:
> > In response to Matthew Schumacher <matt(dot)s(at)aptalaska(dot)net>:
> > > 
> > > What I really need is a way to profile my proc when it runs slow so that
> > > I can resolve which of the queries is really slow.  Anyone with an idea
> > > on how to do this?
> > 
> > You could turn on statement logging and duration logging.  This would
> > give you a record of when things run and how long they take.  A little
> > work analyzing should show you which queries are running when your
> > favorite query slows down.
> By default, that doesn't help you debug what's happening inside a
> function, because you only get the call to the function. I don't know if
> you can increase verbosity to combat that.

Right, but my point was that he believes another query is interfering
when the target query is slow.  Turning on those logging statements
a) Allow him to identify times when the query is slow.
b) Identify other queries that are running at the same time.

If he sees a pattern (i.e. My query is always slow if query X5 is
running at the same time) he'll have a good lead into further research.

Bill Moran
Collaborative Fusion Inc.

In response to

pgsql-performance by date

Next:From: Carlo StonebanksDate: 2006-09-28 17:47:44
Subject: Re: Performace Optimization for Dummies
Previous:From: Merlin MoncureDate: 2006-09-28 17:17:53
Subject: Re: Performace Optimization for Dummies

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group