Charmed PostgreSQL

Channel Revision Published Runs on
latest/stable 316 11 Aug 2023
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 18.04 Ubuntu 16.04
14/stable 288 18 Apr 2023
Ubuntu 22.04
14/candidate 326 19 Sep 2023
14/beta 330 27 Sep 2023
14/edge 330 26 Sep 2023
juju deploy postgresql --channel 14/stable
Show information



How to manage related applications

New postgresql_client interface:

Relations to new applications are supported via the “postgresql_client” interface. To create a relation:

juju relate postgresql application

To remove a relation:

juju remove-relation postgresql application

Legacy pgsql interface:

We have also added support for the database legacy relation from the original version of the charm via the pgsql interface. Please note that these interface is deprecated.

juju relate postgresql:db mailman3-core

Also extended permissions can be requested using db-admin edpoint:

juju relate postgresql:db-admin mailman3-core

Rotate applications password

To rotate the passwords of users created for related applications, the relation should be removed and related again. That process will generate a new user and password for the application.

juju remove-relation application postgresql
juju add-relation application postgresql

Internal operator user

The operator user is used internally by the Charmed PostgreSQL Operator, the set-password action can be used to rotate its password.

  • To set a specific password for the operator user
juju run-action postgresql/leader set-password password=<password> --wait
  • To randomly generate a password for the operator user
juju run-action postgresql/leader set-password --wait

Help us improve this documentation

Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.

Last updated 5 months ago. Help improve this document in the forum.