Re: [SQL] Monitoring a Query

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Aaron Held <aaron@MetroNY.com>, Roberto Mello <rmello@cc.usu.edu>, Neil Conway <neilc@samurai.com>, pgsql-sql@postgresql.org, pgsql-general@postgresql.org
Date: 2002-09-23T15:06:19Z
Lists: pgsql-hackers, pgsql-general, pgsql-sql
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > OK, added to TODO:
> > 	* Add start time to pg_stat_activity
> 
> It would be nearly free to include the start time of the current
> transaction, because we already save that for use by now().  Is
> that good enough, or do we need start time of the current query?

Current query, I am afraid.  We could optimize it so single-query
transactions wouldn't need to call that again.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073