Re: [SQL] Monitoring a Query

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Aaron Held <aaron(at)MetroNY(dot)com>
Cc: Roberto Mello <rmello(at)cc(dot)usu(dot)edu>, Neil Conway <neilc(at)samurai(dot)com>, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] Monitoring a Query
Date: 2002-09-23 14:49:53
Message-ID: 200209231449.g8NEnrl11375@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

Aaron Held wrote:
> It looks like that just timestamps things in its connection pool, that
> is what I do now.
>
> What I would like is to know about queries that have not finished yet.

OK, added to TODO:

* Add start time to pg_stat_activity

Should we supply the current duration too? That value would change on
each call. Seems redundant.

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Shaunn 2002-09-23 14:51:14 rotatelog / logrotate with PostgreSQL
Previous Message Bruce Momjian 2002-09-23 14:48:30 Re: [SQL] Monitoring a Query

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-23 15:03:06 Re: [SQL] Monitoring a Query
Previous Message Bruce Momjian 2002-09-23 14:48:30 Re: [SQL] Monitoring a Query

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-09-23 15:03:06 Re: [SQL] Monitoring a Query
Previous Message Bruce Momjian 2002-09-23 14:48:30 Re: [SQL] Monitoring a Query