---
title: Charmhub | Deploy PgBouncer using Charmhub - The Open Operator Collection
description: Deploy the latest version of PgBouncer on any cloud.
url: https://charmhub.io/pgbouncer/docs/h-manage-app
---

# PgBouncer

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")
* [Databases](https://charmhub.io/?filter=databases)

Platform:

24.04

22.04

20.04

18.04

16.04

1/stable 1092

```
juju deploy pgbouncer --channel 1/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://ubuntu.com/data/postgresql)

---

#### Contacts

##### Maintainers

+ [Canonical Data Platform](mailto:data-platform@lists.launchpad.net)

* [Submit a bug](https://github.com/canonical/pgbouncer-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to manage related applications

## Modern `postgresql_client` interface:

Relations to new applications are supported via the “[postgresql\_client](https://github.com/canonical/charm-relation-interfaces/blob/main/interfaces/postgresql_client/v0/README.md)” interface. To create a relation:

```
juju integrate pgbouncer application
```

To remove a relation:

```
juju remove-relation pgbouncer application
```

All listed on CharmHub applications are available [here](https://charmhub.io/pgbouncer/integrations), e.g. [postgresql-test-app](https://charmhub.io/postgresql-test-app).

## Legacy `pgsql` interface:

This charm also supports the legacy relation via the `pgsql` interface. Please note that these interface is deprecated.

```
juju relate pgbouncer:db myapplication
```

Also extended permissions can be requested using `db-admin` endpoint:

```
juju relate pgbouncer:db-admin myapplication
```

## Internal operator user

To rotate the internal router passwords, the relation with backend-database should be removed and related again. That process will generate a new user and password for the application, while retaining the requested database and data.

```
juju remove-relation postgresql pgbouncer

juju integrate postgresql pgbouncer
```

---
