Re: [GENERAL] Monitoring a Query - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [GENERAL] Monitoring a Query
Date
Msg-id 200209231506.g8NF6JP13779@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] Monitoring a Query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] Monitoring a Query  (Manfred Koizar <mkoi-pg@aon.at>)
List 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

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] Monitoring a Query
Next
From: Jean-Luc Lachance
Date:
Subject: Re: [GENERAL] Getting acces to MVCC version number