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 7. Database Administration

In this chapter, we will cover the following recipes:

  • Writing a script that either succeeds entirely or fails entirely

  • Writing a psql script that exits on the first error

  • Performing actions on many tables

  • Adding/removing columns on a table

  • Changing the data type of a column

  • Changing the definition of a data type

  • Adding/removing schemas

  • Moving objects between schemas

  • Adding/removing tablespaces

  • Moving objects between tablespaces

  • Accessing objects in other PostgreSQL databases

  • Accessing objects in other foreign databases

  • Updatable views

  • Using materialized views