PostgreSQL major versions¶
There are two generations of charms stored under the same charm name: postgresql. In these docs, we refer to them as “legacy” and “modern”.
There are two generations of charms stored under the same charm name: postgresql-k8s. In these docs, we refer to them as “legacy” and “modern”.
They are shipped in the following Charmhub tracks :
Charm name |
Charmhub channel |
Type |
Status |
|---|---|---|---|
PostgreSQL 16 |
|
modern |
|
PostgreSQL 14 |
|
modern |
|
Legacy PostgreSQL charm |
|
legacy |
|
- Legacy charm (deprecated)
Also known as a Reactive charm . Found in the Charmhub channel
latest/stable.Provided
dbanddb-adminendpoints for thepgsqlinterface.- Modern charm
Also known as an Ops charm . Found in the Charmhub channels
14/stableand16/stable.14/stableprovides legacy endpoints and newdatabaseendpoint for thepostgresql_clientinterface.16/stabledoes not provide legacy endpoints - only the newdatabasedatabaseendpoint for thepostgresql_clientinterface.
See also: Interfaces and endpoints
Choosing a version¶
For new deployments: Use PostgreSQL 16 for the latest features and long-term support
For existing PostgreSQL 14 deployments: Continue using PostgreSQL 14 or plan migration to 16
For legacy charm users: Migrate to PostgreSQL 14 as soon as possible
PostgreSQL 16 features¶
Latest stable version with active feature development.
Base: Ubuntu 24.04 LTS (Noble)
Supported architectures:
amd64,arm64Channel:
16/stable(latest development available for testing in16/edge)Juju version: Requires Juju 3.6+ LTS
Support status:
Active development and full support
New features¶
Juju spaces - Enhanced networking capabilities for complex deployment scenarios
Juju user secrets - Secure management of the charm’s internal passwords
Improved security hardening - Enhanced security posture and best practices
TLS v4 library migration
New endpoints
client-certificatesandpeer-certificatesEndpoint
peer-interfacesuses TLS by defaultSee all endpoints on Charmhub
Timescale Community Edition replaces Timescale Apache 2
Improved built-in roles - Enhanced role-based access control system
New refresh process for in-place upgrades
Deprecated or removed¶
Important changes to keep in mind when migrating from 14 to 16:
Legacy interface
psql- Endpointsdbanddb-adminare no longer supportedSee Interfaces and endpoints for current supported interfaces
Support for Juju <
v3.6removedCharmed PostgreSQL 16 requires Juju
3.6+ LTSdue to Juju secrets support
Juju actions
get-passwordandset-passwordremovedReplaced by Juju secrets for enhanced security
Timescale Apache 2 edition replaced
Now uses Timescale Community edition
Charm action
set-tls-private-keyremovedWill be re-introduced as Juju User Secrets in future releases
Charm actions renamed for consistency:
pre-upgrade-check→pre-refresh-checkresume-upgrade→resume-refreshChanges align with
juju refreshterminology
Charm endpoint
certificatessplit into separate endpoints:client-certificates- For client certificate managementpeer-certificates- For peer-to-peer certificate management
For detailed information about all PostgreSQL 16 releases, see Release notes.
PostgreSQL 14 features¶
Maintenance mode with bug fixes and security updates only.
Base: Ubuntu 22.04 LTS (Jammy)
Supported architectures:
amd64,arm64Channel:
14/stableJuju version: Partially compatible with older Juju versions down to 2.9
Support status: 🔧 Bug fixes and security updates only
Features¶
Deployment on multiple cloud services, including Sunbeam, MAAS, AWS, GCE, and Azure
Juju storage - Flexible storage configuration options
Back up and restore, including point-in-time recovery
COS integration - Enable observability tools like Grafana, Loki, Tempo, and Parca
LDAP integration - Centralised authentication for PostgreSQL clusters
For detailed information about all PostgreSQL 14 releases, see the PostgreSQL 14 Releases page .