Book Image

PostgreSQL 9 High Availability Cookbook

By : Shaun Thomas
Book Image

PostgreSQL 9 High Availability Cookbook

By: Shaun Thomas

Overview of this book

Table of Contents (17 chapters)
PostgreSQL 9 High Availability Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Data Distribution

In this chapter, we will learn how clever data management can increase uptime even further. We will cover the following recipes in this chapter:

  • Identifying horizontal candidates

  • Setting up a foreign PostgreSQL server

  • Mapping a remote user

  • Creating a foreign table

  • Using a foreign table in a query

  • Optimizing foreign table access

  • Transforming foreign tables into local tables

  • Creating a scalable nextval replacement

  • Building a sharding API

  • Talking to the right shard

  • Moving a shard to another server