Re: CPU usage by sqls

From: "ktm(at)rice(dot)edu" <ktm(at)rice(dot)edu>
To: Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: CPU usage by sqls
Date: 2013-10-21 17:48:40
Message-ID: 20131021174840.GA20049@aart.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Oct 21, 2013 at 09:18:18AM -0700, Thara Vadakkeveedu wrote:
> 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) that gives 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.

Hi Thara,

Have you looked at pgbadger?

Cheers,
Ken

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ilya Kosmodemiansky 2013-10-22 09:05:55 PostgreSQL 9.2.5 Open SuSe rpm
Previous Message Scott Marlowe 2013-10-21 17:05:53 Re: CPU usage by sqls