---
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-upgrade
---

# 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/)

# Upgrade

Currently, the charm supports PgBouncer major version 1 only. Therefore, in-place upgrades/rollbacks are not possible for major versions.

> **Note**: Canonical is not planning to support in-place upgrades for major version change. The new PgBouncer charm will have to be installed nearby, and the data will be copied from the old to the new installation. After announcing the next PostgreSQL + PgBouncer major version support, the appropriate documentation for data migration will be published.

For instructions on carrying out **minor version upgrades**, see the following guides:

* [Minor upgrade](https://charmhub.io/pgbouncer/docs/h-upgrade-minor?channel=1/stable), e.g. PgBouncer 1.18 → PgBouncer 1.19
  (including charm revision bump 99 → 102).
* [Minor rollback](https://charmhub.io/pgbouncer/docs/h-rollback-minor?channel=1/stable), e.g. PgBouncer 1.19 → PgBouncer 1.18
  (including charm revision return 102 → 99).

---
