Re: Increasing the length of

Поиск
Список
Период
Сортировка
Искать
От
Simon Riggs
Тема
Re: Increasing the length of
Дата
Msg-id
1100123537.4442.635.camel@localhost.localdomain
Ответ на
Список
Дерево обсуждения
Increasing the length of pg_stat_activity.current_query... Sean Chittenden <sean@chittenden.org>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of pg_stat_activity.current_query... Gaetano Mendola <mendola@bigfoot.com>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of Richard Huxton <dev@archonet.com>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of Andrew Sullivan <ajs@crankycanuck.ca>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of Bruce Momjian <pgman@candle.pha.pa.us>
Re: Increasing the length of Andrew Sullivan <ajs@crankycanuck.ca>
Re: Increasing the length of Robert Treat <xzilla@users.sourceforge.net>
Re: Increasing the length of Andrew Sullivan <ajs@crankycanuck.ca>
Re: Increasing the length of pg_stat_activity.current_query... Oliver Jowett <oliver@opencloud.com>
Re: Increasing the length of pg_stat_activity.current_query... Jan Wieck <JanWieck@Yahoo.com>
Re: Increasing the length of Simon Riggs <simon@2ndquadrant.com>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Sean Chittenden <sean@chittenden.org>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of pg_stat_activity.current_query... Sean Chittenden <sean@chittenden.org>
Re: Increasing the length of pg_stat_activity.current_query... Tom Lane <tgl@sss.pgh.pa.us>
Re: Increasing the length of pg_stat_activity.current_query... Greg Stark <gsstark@mit.edu>
Re: Increasing the length of pg_stat_activity.current_query... Bruce Momjian <pgman@candle.pha.pa.us>
Hi Richard

On Wed, 2004-11-10 at 21:48, Richard Huxton wrote:
> Simon Riggs wrote:
> > On Mon, 2004-11-08 at 22:32, Tom Lane wrote:
> > 
> >>Another relevant question is why you are expecting to get this
> >>information through pgstats and not by looking in the postmaster log.
> > 
> > 
> > This is only available if you log all queries, which isn't normally done
> > while you are in production. When you hit a long running query, you do
> > wish you had that enabled, and if it was you could look there. 
> > 
> > It would be best to leave the postmaster logging turned off, then allow
> > dynamic inspection of the query iff you have a rogue query.
> 
> Isn't that:
> log_min_duration_statement (integer)
> 
>   Sets a minimum statement execution time (in milliseconds) for 
> statement to be logged. All SQL statements that run in the time 
> specified or longer will be logged with their duration. Setting this to 
> zero will print all queries and their durations. Minus-one (the default) 
> disables this. For example, if you set it to 250 then all SQL statements 
> that run 250ms or longer will be logged. Enabling this option can be 
> useful in tracking down unoptimized queries in your applications. Only 
> superusers can increase this or set it to minus-one if this option is 
> set by the administrator.

That gets written when a statement completes, not during execution.

It's great for finding out if you have them AFTER the fact, but no good
for telling what's going on in the middle of execution.

(It's great BTW, thanks to whoever wrote it)

-- 
Best Regards, Simon Riggs


В списке pgsql-hackers по дате отправления
От: Richard Huxton
Дата:
Сообщение: Re: Increasing the length of
От: Bruce Momjian
Дата:
Сообщение: Beta time early next week
FAQ