Logging Basics
PostgreSQL logs are your flight recorder: connections, errors, slow queries, and checkpoints. Configure log_line_prefix, selective log_min_duration_statement, and rotation discipline before log volume overwhelms disk or SIEM budget. PostgreSQL 18.4 defaults are minimal; production needs explicit policy.