From: | Aaron Held <aaron(at)MetroNY(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Neil Conway <neilc(at)samurai(dot)com>, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Monitoring a Query |
Date: | 2002-09-23 13:24:38 |
Message-ID: | 3D8F1616.3040509@MetroNY.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
Bruce Momjian wrote:
> Neil Conway wrote:
>
>>Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>>
>>>Aaron Held wrote:
>>>
>>>>Is there any way to monitor a long running query?
>>>
>>>Oh, sorry, you want to know how far the query has progressed. Gee, I
>>>don't think there is any easy way to do that.
>>
>>Would it be a good idea to add the time that the current query began
>>execution at to pg_stat_activity?
>
>
> What do people think about this? It seems like a good idea to me.
>
My application marks the start time of each query and I have found it
very useful. The users like to see how long each query took, and the
admin can take a quick look and see how many queries are running and how
long each has been active for. Good for debugging and billing.
-Aaron Held
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2002-09-23 13:43:44 | Postgresql Automatic vacuum |
Previous Message | Richard Huxton | 2002-09-23 11:45:32 | Re: Tips for re-using function results within single insert |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-09-23 13:41:40 | Re: DROP COLUMN misbehaviour with multiple inheritance |
Previous Message | Curt Sampson | 2002-09-23 12:24:25 | Re: PGXLOG variable worthwhile? |
From | Date | Subject | |
---|---|---|---|
Next Message | Aaron Held | 2002-09-23 13:31:33 | Re: Performance w/ multiple WHERE clauses |
Previous Message | Bruce Momjian | 2002-09-23 01:51:55 | Re: Monitoring a Query |