PostgreSQL

Slow query logging disabled prevents identification of performance issues

warning
performanceUpdated Feb 26, 2026
Technologies:
How to detect:

When log_min_duration_statement is not configured, queries exceeding performance thresholds are not logged, making it impossible to identify slow queries through logs. The document recommends setting this to 1000ms (1 second) to capture problematic queries.

Recommended action:

Set log_min_duration_statement = 1000 in postgresql.conf to log queries taking longer than 1 second. Set log_statement = 'none' and log_duration = off to avoid excessive logging. Reload PostgreSQL configuration after changes.