Re: How to debug performance problems - Mailing list pgsql-performance

From Mark Stosberg
Subject Re: How to debug performance problems
Date
Msg-id eri0nl$23bu$1@news.hub.org
Whole thread Raw
In response to Re: How to debug performance problems  (Ray Stell <stellr@cns.vt.edu>)
List pgsql-performance
Ray Stell wrote:
> I'd like to have a toolbox prepared for when performance goes south.
> I'm clueless.  Would someone mind providing some detail about how to
> measure these four items Craig listed:
>
> 1. The first thing is to find out which query is taking a lot of time.
>
> 2. A long-running transaction keeps vacuum from working.
>
> 3. A table grows just enough to pass a threshold in the
>    planner and a drastically different plan is generated.

I just ran into a variation of this:

3.5 A table grows so large so that VACUUMING it takes extremely long,
interfering with the general performance of the system.

In our case, we think the table had about 36 million rows when it hit
that threshold.

I'm now working on a better solution for that table.

  Mark

pgsql-performance by date:

Previous
From: Ray Stell
Date:
Subject: Re: How to debug performance problems
Next
From: Mark Stosberg
Date:
Subject: How to avoid vacuuming a huge logging table