Logging: Not Just for Lumberjacks
log in to bookmark this presentaton
Logging is an important part of your database monitoring suite, providing historical information for troubleshooting and forensic purposes: which user logged in when, what queries they ran and how long they took, when the database restarted. PostgreSQL offers different file format, message format, and message content options for logging. These options can be kind of overwhelming for the first-time user. We'll walk through the various configuration parameters to help you figure out how to get what you need in a format that's useful to you. (We'll even talk a bit about how to do this on Windows.) Then we'll discuss some solutions for extracting information from your logs.
This is an updated version of the talk I gave at pgOpen last year. It's best for people who haven't played around with logging (much) yet, but know where their postgresql.conf is.