Book Image

PostgreSQL 9 Administration Cookbook - Second Edition

Book Image

PostgreSQL 9 Administration Cookbook - Second Edition

Overview of this book

Table of Contents (19 chapters)
PostgreSQL 9 Administration Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Performance and Concurrency

In this chapter, we will cover the following recipes:

  • Finding slow SQL statements

  • Collecting regular statistics from pg_stat* views

  • Finding out what makes SQL slow

  • Reducing the number of rows returned

  • Simplifying complex SQL queries

  • Speeding up queries without rewriting them

  • Why a query is not using an index

  • Forcing a query to use an index

  • Using optimistic locking

  • Reporting performance problems