Re: Query Feromance

Поиск
Список
Период
Сортировка
От Thomas Pundt
Тема Re: Query Feromance
Дата
Msg-id 200603210943.57454.mlists@rp-online.de
обсуждение исходный текст
Ответ на Re: Query Feromance  (Marco Furetto <furetto@bluestudio.it>)
Ответы Re: Query Feromance  (Marco Furetto <furetto@bluestudio.it>)
Re: Query Feromance  (Marco Furetto <furetto@bluestudio.it>)
Список pgsql-performance
Hi,

On Tuesday 21 March 2006 09:25, Marco Furetto wrote:
| I'm managing the db of a "Content Management environment" and I'm
| searching for a "Query analyzer" to improve performance because i don't
| know how many and what type of queries are executing on the system (for
| the "where and join" block).

as a first step, I'd enable query duration logging; in postgresql.conf
I have set

  log_min_duration_statement = 3000

this will log each query that needs more than 3 seconds to complete.

The next step would be to "explain analyze" the problematic queries.

Ciao,
Thomas

--
Thomas Pundt <thomas.pundt@rp-online.de> ---- http://rp-online.de/ ----

В списке pgsql-performance по дате отправления:

Предыдущее
От: Marco Furetto
Дата:
Сообщение: Re: Query Feromance
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: planner with index scan cost way off actual cost, advices to tweak cost constants?