From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | The Hermit Hacker <scrappy(at)hub(dot)org> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pgmonitor patch for query string |
Date: | 2001-03-14 19:28:33 |
Message-ID: | 200103141928.OAA06754@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Martin A. Marques | 2001-03-14 21:11:01 | Re: database died |
Previous Message | The Hermit Hacker | 2001-03-14 19:16:00 | Re: pgmonitor patch for query string |