Re: [SQL] Monitoring a Query
Aaron Held <aaron@metrony.com>
From: Aaron Held <aaron@MetroNY.com>
To: Roberto Mello <rmello@cc.usu.edu>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>, Neil Conway <neilc@samurai.com>, pgsql-sql@postgresql.org, pgsql-general@postgresql.org
Date: 2002-09-23T14:31:18Z
Lists: pgsql-hackers, pgsql-general, pgsql-sql
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. -Aaron Roberto Mello wrote: > 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 >