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:
Download the archive installation file from the given link: http://pgfoundry.org/projects/pgbouncer
Extract the downloaded archive and enter the source directory:
tar -xzf pgbouncer-1.5.4.tar.gz cd pgbouncer-1.5.4
The next step is to build and proceed with the software installation:
./configure --prefix=/usr make & make install
After PgBouncer...