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 9. Regular Maintenance

In this chapter, we will cover the following recipes:

  • Controlling automatic database maintenance

  • Avoiding auto-freezing and page corruptions

  • Avoiding transaction wraparound

  • Removing old prepared transactions

  • Actions for heavy users of temporary tables

  • Identifying and fixing bloated tables and indexes

  • Maintaining indexes

  • Adding a constraint without checking existing rows

  • Finding unused indexes

  • Carefully removing unwanted indexes

  • Planning maintenance