How it works...
Before we start the recipe, we recommended installing the PostgreSQL PGDG (short for PostgreSQL Global Development Group) package repository. We did that because officially supported packages are often tweaked to work best in the Linux distribution where they're installed, much like packages from a certain vendor. The primary difference here is that these will always be the latest supported versions, rather than what the Linux vendor has decided they will maintain for that particular release.
Then, we simply use the appropriate package manager to install the pgbouncer set of packages. We understand this is somewhat anticlimactic, but it's certainly less effort than compiling from the source and allocating a custom initialization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access