...
13. Run pgtune. Note that this requires Python. You can also use the online tool https://pgtune.leopard.in.ua/#/ and fill in the required values and as well as those that correspond to your system. Add or change the appropriate settings and restart PostgreSQL.
...