Re: CPU usage by sqls

Поиск
Список
Период
Сортировка
От Igor Neyman
Тема Re: CPU usage by sqls
Дата
Msg-id A76B25F2823E954C9E45E32FA49D70EC42838BF4@mail.corp.perceptron.com
обсуждение исходный текст
Ответ на CPU usage by sqls  (Thara Vadakkeveedu <tharagv@yahoo.com>)
Список pgsql-admin
Subject: [ADMIN] CPU usage by sqls

Hi
Is there a way to get cpu utilization of various sql statements during a specific time period on postgresql ?
Say I start a performance test, I would like to collect a top sql report at the end of the test (like in sql server)
thatgives details of the top cpu consuming sqls..  
Also wondering if there is a sql profiler on postgressql that indicates the number of rows read and written to by sql
statements,cpu cost, elapsed time etc during a profiled session. 
thanks,
thara.

Take a look at pg_stat_statements extension.

Regards,
Igor Neyman


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

Предыдущее
От: Ilya Kosmodemiansky
Дата:
Сообщение: PostgreSQL 9.2.5 Open SuSe rpm
Следующее
От: Linus Kamb
Дата:
Сообщение: Unable to connect. Log : PDTWARNING: worker took too long to start; canceled