# PostgreSQL Production Configuration # Optimized for production workloads # Connection Settings max_connections = 100 superuser_reserved_connections = 3 # Memory Settings shared_buffers = 256MB work_mem = 4MB maintenance_work_mem = 64MB effective_cache_size = 1GB # Checkpoint Settings checkpoint_completion_target = 0.9 checkpoint_timeout = 15min max_wal_size = 4GB min_wal_size = 1GB # Query Planner Settings effective_io_concurrency = 200 random_page_cost = 1.1 seq_page_cost = 1.0 # Logging Settings log_destination = 'stderr' logging_collector = off log_min_messages = warning log_min_error_statement = error log_statement = 'none' # Performance Settings huge_pages = off shared_preload_libraries = 'pg_stat_statements' track_activity_query_size = 1024 pg_stat_statements.track = all