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 2. Exploring the Database

This chapter covers the following recipes:

  • What version is the server?

  • What is the server uptime?

  • Locating the database server files

  • Locating the database server's message log

  • Locating the database's system identifier

  • Listing databases on this database server

  • How many tables in a database?

  • How much disk space does a database use?

  • How much disk space does a table use?

  • Which are my biggest tables?

  • How many rows in a table?

  • Quickly estimating the number of rows in a table

  • Listing extensions in this database

  • Understanding object dependencies