PostgreSQL service on Rocky Linux: configuring StopWhenUnneeded to control idle connections
PostgreSQL service on Rocky Linux: configuring StopWhenUnneeded to control idle connections The goal is to ensure that idle PostgreSQL connections are released when the systemd service is stopped or restarted, thereby reducing the risk of connection pool exhaustion under variable workloads. Currently the default max_connections is 100, idle_in_transaction_se