application_name=your_app_name. Use descriptive names like 'web_app', 'reporting_service', or 'batch_processor'. Establish naming conventions across your organization for consistency in monitoring and logging.on is recommended for all environments where debug output might be examined. The performance overhead is negligible, and the improved readability is worth the minimal cost.off. Enable temporarily for specific debugging sessions. Use with log_statement to control which statements are logged. Not recommended for production due to high log volume.off. Enable for specific troubleshooting sessions. Combine with log_statement to focus on problematic queries. Monitor log volume when enabled.off. Enable only when specifically debugging query rewrite issues. Generates very verbose output, so use selectively.-1 (disabled). Set to 1000ms or 5000ms to log autovacuum operations taking longer than 1-5 seconds. Adjust based on your monitoring needs and log volume tolerance.off. Set to on for production environments to monitor checkpoint behavior. The log volume is manageable and the insights are valuable for performance tuning.off. Set to on for production environments for security auditing. Consider the log volume implications for very high-connection environments.off. Enable alongside log_connections for complete connection tracking. Particularly useful for detecting connection pool issues.off. Set to on for performance monitoring. Combine with log_min_duration_statement to focus on slow queries rather than logging every statement.default. Set to verbose for development and troubleshooting. Use terse for production if log volume is a concern, but default is usually appropriate.off. Enable if you need hostname information and have reliable DNS. Test performance impact in your environment before enabling in production.'%m [%p] %q%u@%d ' (timestamp, process ID, role, database). Adjust based on your logging needs and analysis tools. Include enough context to identify when and where each log message originated.off. Set to on in production environments to monitor locking behavior. Particularly valuable for applications with high concurrency.0 (no parameters). Set to 64 or 128 to capture meaningful parameter information without excessive log growth. Use -1 with caution as it can log very large values.0 (no parameters). Set to 256 or 512 to get useful parameter context for error debugging. Can be higher than log_parameter_max_length since errors are less frequent.off. Set to on for standby servers to monitor recovery conflict issues. Crucial for maintaining standby performance and stability.off. Enable temporarily for replication debugging. Not recommended for continuous use in production due to log volume.none. Use ddl for most production environments to track schema changes. Use mod to also track data modifications. Use all only for specific debugging due to high volume.-1 (disabled). Set to 1024 (1MB) to log temporary file usage. Monitor and adjust work_mem for queries that frequently use temporary files.UTC for consistency. UTC is recommended for distributed systems to avoid timezone confusion. Example: 'UTC' or 'Europe/Istanbul'.Start your journey toward a healthier PostgreSQL with pghealth.
You can explore all features immediately with a free trial β no installation required.
π Start Free Trial