Re: Query preformence

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query preformence
Дата
Msg-id 16503.1005227090@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query preformence  (Ferdinand Smit <ferdinand@telegraafnet.nl>)
Ответы Re: Query preformence  (Ferdinand Smit <ferdinand@telegraafnet.nl>)
Re: Query preformence  (Ferdinand Smit <ferdinand@telegraafnet.nl>)
Список pgsql-patches
Ferdinand Smit <ferdinand@telegraafnet.nl> writes:
>> What?  This seems completely redundant with the existing logging tools.

> True, but i can't see any usable function for the statics because they are
> logged without any relation. You don't know what is causing the preformence
> problem.

Sure you do: you look at the execution statistics you don't like and
then look back to see the most recent query logged by the same backend.

I do see an issue here, which is that the STATISTICS messages should be
emitted by elog() so that they will be tagged with a PID when log_pid is
true.  But that's easily fixed.

BTW, you might want to look at 7.2's EXPLAIN ANALYZE command as a
different approach.

            regards, tom lane

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

Предыдущее
От: andrea gelmini
Дата:
Сообщение: stupid patch of pg_dumplo
Следующее
От: Karel Zak
Дата:
Сообщение: Re: stupid patch of pg_dumplo