Hi Ronny Carlansson •,
Welcome to Microsoft Q&A forum.
As I understand, you have got connection spike for your Azure Database for PostgreSQL Flexible Server.
Could you please let us know the configuration of the Server?
Also, this could be due to internal system processes, maintenance tasks, or internal operations.
That default value for the max_connections server parameter is calculated when the instance of Azure Database for PostgreSQL Flexible Server is first provisioned, based on the SKU name selected for its compute. Any subsequent changes of SKU to the compute supporting that flexible server, won't have any effect on the currently set neither on the default value chosen for max_connections server parameter of that instance. Therefore it is recommended that, whenever you change the SKU assigned to an instance, you also adjust the currently set value for the max_connections parameter as per the values provided in the table above.
You can try to check more by https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-audit Audit logs.
Let us know if this helps. If not, we can further investigate.
Thanks