Hi @Rubens Max,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
As we understand that, you are trying to resolve high latency issue during peak loads with PostgreSQL queries.
There are several steps you can take to diagnose and resolve high latency issues in your PostgreSQL database during peak load times. Here are some suggestions:
1. Check for long-running queries.
2. Check for memory usage.
3. Check for High CPU utilization.
We request you to refer the below mentioned links for more information.
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.