Make PostgreSQLs max_connections dependent on the number of cores.