Postgres raise `remaining connection slots are reserved for non-replication superuser connections` error
The Reporting service raised the following error today:
FATAL: remaining connection slots are reserved for non-replication superuser connections
I check the database activity and relevant configurations via the following commands:
check current using connection number:
select count(1) from pg_stat_activity;
check all the connections(not include current client