Loading

Postgresql Slow Query Log

Set the following variable in postgresql.conf to log all queries that take longer than 100 milliseconds:

log_min_duration_statement = 100

They will show up in the main postgresql.log file.

pgFouine looks like an intriguing postgresql log file analyzer, except it’s written in PHP??!?


Related Posts

  1. High Availability on a Shoestring -- Postgresql 9.0 Streaming Replication
  2. Automatic Production Log Performance Reports Rawk Logrotate
  3. Jekyll Exclude Files
  4. High Availability on a Shoestring -- PgPool-II Installation Woes
  5. gettext 1.10.0 and rails 2.0
You should follow me on Twitter: @patrickxb