Re: query profiling

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: query profiling
Дата
Msg-id 20050909215346.GA18533@gp.word-to-the-wise.com
обсуждение исходный текст
Ответ на query profiling  (Jeff Davis <jdavis-pgsql@empires.org>)
Ответы Re: query profiling  (Jeff Davis <jdavis-pgsql@empires.org>)
Список pgsql-general
On Fri, Sep 09, 2005 at 12:39:14PM -0700, Jeff Davis wrote:

> I'm aware of log_statement_stats, but as far as profiling goes, it's a
> bit crude.
>
> Is there an easier way to determine, for example, all the queries that
> take longer than 0.5 seconds? I'd like to do this on a production
> system, so I'd like to avoid anything that would crush performance or
> cause any kind of downtime.
>
> I could probably make log_statement_stats work, I'm just looking for an
> easier way.

log_min_duration_statement may be what you're looking for.

Cheers,
  Steve

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: bogus varno
Следующее
От: Bricklen Anderson
Дата:
Сообщение: Re: ERROR: bogus varno