Book Image

PostgreSQL Replication, Second Edition

Book Image

PostgreSQL Replication, Second Edition

Overview of this book

Table of Contents (22 chapters)
PostgreSQL Replication Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the features of pgpool


The following features are provided by pgpool:

  • Connection pooling

  • Statement-level replication

  • Load balancing

  • Limiting connections

  • In-memory caching

Tip

When deciding which features to use, it is important to keep in mind that not all functionality is available at the same time. The following website contains an overview of what can go together and what cannot:

http://www.pgpool.net/docs/latest/pgpool-en.html#config.

One core feature of pgpool is the ability to do connection pooling. The idea is pretty much the same as the one we outlined in the previous chapter. We want to reduce the impact of forking connections each and every time a webpage is opened. Instead, we want to keep connections open and reuse them whenever a new request comes along. Those concepts have already been discussed for PgBouncer in the previous chapter.

In addition to pooling, pgpool provides basic replication infrastructure made explicitly to increase a system's reliability. The thing here...