Hello Tamás Rózsa
Glad that your server is back to online. Regarding the max connection parameter, below is the update from the team.
The team managed to set the server parameters values around approximately 2025-06-06 22:40 PM UTC. And following are few more suggestions from our side,
Understanding the Parameters:
max_connections: Determines the maximum number of concurrent connections to the database. Each connection consumes memory for backend processes and shared memory for locks and buffers.
max_locks_per_transaction: Specifies the average number of object locks allocated per transaction. Each lock consumes shared memory.
Recommendations on next steps:
We want you to suggest that setting the server parameters to very higher values and restarting the server will mostly cause issues regarding the server being stuck in restarting state because at the backend, these might be facing memory issues. And trying with somewhat lower values wouldn’t face issues with the server restart. It would always complete as expected.
“One more question: do you know any method in pg to see historically (last 12 or 24 hours) which SQL command how many locks required? In the pg_locks I can count only the active locks and even the pg explain analyse does not calculate the number of requested locks.”
Azure PostgreSQL flexible server Offers a query Store feature that capture a history of queries and runtime statistics , including wait statistics. This can help identify queries that experience locs waits over time. Query store - Azure Database for PostgreSQL flexible server | Microsoft Learn