Changes between Version 56 and Version 57 of InstallationGuidelines/PostgreSQL
- Timestamp:
- 11/16/11 10:46:06 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/PostgreSQL
v56 v57 262 262 * http://www.postgresql.org/docs/8.4/static/runtime-config-logging.html 263 263 264 Log all queries which take longer than 5 s:264 Log all queries which take longer than 500ms: 265 265 {{{ 266 266 vim /etc/rsyslog.conf … … 273 273 syslog_facility = 'LOCAL0' 274 274 syslog_ident = 'postgres' 275 log_min_duration_statement = 500 0275 log_min_duration_statement = 500 276 276 277 277 /etc/init.d/postgresql restart … … 289 289 290 290 291 Log all queries which take longer than 5 s & do an 'EXPLAIN' on those queries (not working)291 Log all queries which take longer than 500ms & do an 'EXPLAIN' on those queries (not working) 292 292 * http://www.depesz.com/index.php/2008/11/23/waiting-for-84-auto-explain/ 293 293 {{{ 294 294 LOAD 'auto_explain'; 295 set explain.log_min_duration = 500 0;295 set explain.log_min_duration = 500; 296 296 }}} 297 297 == Also see ==