Summary
This chapter was all about system statistics. First, you learned how to extract information from PostgreSQL and how to use system statistics beneficially. Without proper monitoring, achieving good and reliable operations is close to impossible. It’s important to keep an eye on runtime parameters and database vitals to avoid trouble. Then, you learned about PostgreSQL monitoring, which can be used to optimize your database.
We also discussed the most important views in detail. Chapter 6, Optimizing Queries for Good Performance, is all about query optimization. You’ll learn how to inspect queries and how they’re optimized.