Logging and monitoring

PostgreSQL instance with ‘log_statement_stats’ enabled

Risk Level

Informational (4)

Platform(s)
Compliance Frameworks

Description

The log_statement_stats flag enables a crude profiling method for logging parser performance statistics which even though can be useful for troubleshooting, it may increase the amount of logs significantly and have performance overhead.
  • Recommended Mitigation

    Make sure 'log_statement_stats' is turned off