pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thara Vadakkeveedu <tharagv@yahoo.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: CPU usage by sqls
Date: Mon, 21 Oct 2013 09:18:18 -0700 (PDT)
Message-ID: <1382372298.2702.YahooMailNeo@web125005.mail.ne1.yahoo.com> (raw)
In-Reply-To: <1379975782.27726.YahooMailNeo@web125005.mail.ne1.yahoo.com>
References: <48F1E182B1021B449414C85E713CE8250E61E0@WLT-MBX03.KRONOS.com>
	<1379975782.27726.YahooMailNeo@web125005.mail.ne1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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.

view thread (4+ messages)  latest in thread

Message-ID: <1382372298.2702.YahooMailNeo@web125005.mail.ne1.yahoo.com>
Permalink:  ../1382372298.2702.YahooMailNeo@web125005.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1382372298.2702.YahooMailNeo@web125005.mail.ne1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tharagv@yahoo.com
  Subject: Re: CPU usage by sqls
  In-Reply-To: <1382372298.2702.YahooMailNeo@web125005.mail.ne1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox