Re: [GENERAL] Monitoring a Query

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

On Sun, Sep 22, 2002 at 09:51:55PM -0400, Bruce Momjian wrote:
> >
> > 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.

OpenACS has a package called "Developer Support" that shows you (among
other things) how long a query took to be executed. Very good to finding
out slow-running queries that need to be optimized.

-Roberto

--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vernon Wu 2002-09-23 13:55:19 How to i18n work with jdbc?
Previous Message Shridhar Daithankar 2002-09-23 13:43:44 Postgresql Automatic vacuum

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-23 13:53:08 Re: DROP COLUMN misbehaviour with multiple inheritance
Previous Message Shridhar Daithankar 2002-09-23 13:43:44 Postgresql Automatic vacuum

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-09-23 14:26:46 Re: Stripping white-space in SELECT statments
Previous Message Aaron Held 2002-09-23 13:31:33 Re: Performance w/ multiple WHERE clauses