pgbouncer command not found

In this troubleshooting guide we learn how to fix pgbouncer command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pgbouncer: command not found

or when using sudo you get the following error message

sudo: pgbouncer: command not found

Solutions to pgbouncer: command not found

How To Fix pgbouncer: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pgbouncer is provided by pgbouncer package.

pgbouncer is:

PgBouncer is a lightweight connection pooler for PostgreSQL providing the following features:

  • Several different methods of pooling connections: session pooling, transaction pooling, statement pooling.
  • Low memory requirements.
  • It is not tied to one backend server, the destination databases can reside on different hosts.
  • Supports online reconfiguration for most of the settings.
  • Supports online restart/upgrade.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pgbouncer

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pgbouncer.

sudo apt -y install pgbouncer

Or if you have aptitude installed you can use the following command.

sudo aptitude install pgbouncer

Summary

In this tutorial we learn how to fix pgbouncer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.