Re: How to debug performance problems

Поиск
Список
Период
Сортировка
От Mark Stosberg
Тема Re: How to debug performance problems
Дата
Msg-id eri0nl$23bu$1@news.hub.org
обсуждение исходный текст
Ответ на Re: How to debug performance problems  (Ray Stell <stellr@cns.vt.edu>)
Список 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 по дате отправления:

Предыдущее
От: Ray Stell
Дата:
Сообщение: Re: How to debug performance problems
Следующее
От: Mark Stosberg
Дата:
Сообщение: How to avoid vacuuming a huge logging table