Re: Log Slow Queries

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Log Slow Queries
Дата
Msg-id 4431D905.8040008@gmail.com
обсуждение исходный текст
Ответ на Log Slow Queries  (MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br>)
Ответы Re: Log Slow Queries  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
MaRCeLO PeReiRA wrote:
> Hi Guys,
>
> Is there a feature in PostgreSQL like
> "--log-slow-queries"(MySQL) ???

Unfortunately not.

What you can do is edit your postgresql.conf file and set:

log_min_duration_statement

See
http://www.postgresql.org/docs/8.1/interactive/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHEN
for more info.

This will go into the main log file, it won't create a separate log (as
slow-queries allows you to do in mysql).

--
Postgresql & php tutorials
http://www.designmagick.com/

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: FAQ 1.1
Следующее
От: Leon Pu
Дата:
Сообщение: Database restoration performance issue on PostgreSQL 7.4.7