Re: Log Slow Queries - Mailing list pgsql-general

From Chris
Subject Re: Log Slow Queries
Date
Msg-id 4431D905.8040008@gmail.com
Whole thread Raw
In response to Log Slow Queries  (MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br>)
Responses Re: Log Slow Queries
List 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 by date:

Previous
From: Jim Nasby
Date:
Subject: Re: FAQ 1.1
Next
From: Leon Pu
Date:
Subject: Database restoration performance issue on PostgreSQL 7.4.7