Book Image

PostgreSQL Cookbook

By : Chitij Chauhan
Book Image

PostgreSQL Cookbook

By: Chitij Chauhan

Overview of this book

<p>PostgreSQL is an open source database management system. It is used for a wide variety of development practices such as software and web design, as well as for handling large datasets (big data).</p> <p>With the goal of teaching you the skills to master PostgreSQL, the book begins by giving you a glimpse of the unique features of PostgreSQL and how to utilize them to solve real-world problems. With the aid of practical examples, the book will then show you how to create and manage databases. You will learn how to secure PostgreSQL, perform administration and maintenance tasks, implement high availability features, and provide replication. The book will conclude by teaching you how to migrate information from other databases to PostgreSQL.</p>
Table of Contents (19 chapters)
PostgreSQL Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


The pgpool-II utility is basically a middleware solution that works as an interface between a PostgreSQL server and a PostgreSQL client application. The pgpool-II utility serves as a proxy between PostgreSQL's backend and frontend protocols and relays a connection between the two. The pgpool-II utility caches connections to PostgreSQL servers and reuses them whenever a new connection with the same properties comes in, thereby reducing connection negotiation overhead such as authentication and encryption, and improving overall throughput.

In fact, the pgpool-II utility offers a lot more features than just connection pooling. It offers load balancing and replication modes along with the parallel query feature.

The pgbouncer utility is a lightweight connection pooler for PostgreSQL. Applications connect to the pgbouncer port just as they would connect to a PostgreSQL database on the database port. Using the pgbouncer utility, we can lower the connection overload impact on PostgreSQL...