Installing PgBouncer

In this recipe, we are going to show the steps that are required to install PgBouncer.

Getting ready

We can either do a full source-based installation or use the operating system-specific package manager to install PgBouncer.

How to do it...

On an Ubuntu/Debian based system, we need to execute the following command to install PgBouncer:

apt-get install pgbouncer

On CentOS, Fedora, or Red Hat-based Linux distributions, we can execute the following command:

yum install pgbouncer

If you are doing a full source based installation, then the sequence of commands are mentioned here:

  1. Download the archive installation file from the given link:http://pgfoundry.org/projects/pgbouncer
  2. Extract the downloaded archive and enter the source directory: ...

Get PostgreSQL High Performance Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.