Re: pgmonitor patch for query string - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pgmonitor patch for query string
Date
Msg-id 200103141928.OAA06754@candle.pha.pa.us
Whole thread Raw
In response to Re: pgmonitor patch for query string  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> > This doesn't tell you whether the query is still running, but ps tells you
> > that.  In fact, it might be an idea to add a logging option that prints
> > something like "query finished in xxx ms".  We actually have something
> > similar hidden under show_query_stats, but the formatting needs to be made
> > more convenient and possibly less verbose.  But at least this way you have
> > it for the record, and not only on the screen.
> 
> I *definitely* like this one ... I've been doing wrappers around my
> pg_exec() calls in PHP to do some stats generation to work on "slow
> queries", but having it in the backend would be more exact ... and easier
> to use then having to modify your apps ...
> 

Added to TODO:
* Allow logging of query durations

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: pgmonitor patch for query string
Next
From: "Martin A. Marques"
Date:
Subject: Re: database died