Search Postgresql Archives

Re: Log Slow Queries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux