Hi @Abhishek M,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
We would like to inform you that, The error message, “FATAL: remaining connection slots are reserved for roles with privileges of the pg_use_reserved_connections role, indicates that the server has reached its maximum allowed connections, and only privileged roles can use the remaining reserved slots.
To resolve this issue, you can try the following steps:
- Increase the max_connections parameter in Azure Database for PostgreSQL Flexible Server. You can do this in the Azure portal by navigating to your database, selecting Server Parameters, and adjusting max_connections to a higher value.
- Check for idle connections that are not being used. You can use the pg_stat_activity view to identify idle connections. You can terminate idle connections using the pg_terminate_backend function.
We request you to refer the below mentioned link.
I hope, This response will address your query and helped you to overcome on your challenges.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.