Non pro #postgres user tip.
If you rewriting and optimizing some db queries in your service, you can spot latency degradation while deploying it. Reason may be in not actual query statistics, used to optimize previous query versions. So you can inspect new query plans, determine hanging tables and run analyze command on it
https://www.postgresql.org/docs/current/sql-analyze.html
In my case I drop a few joins, deploy it, but join on other table, that I not even touched, started use seq scan instead of index. I saw x10 query degradation and rollback release.
After analyze query plans started use index again.