|
| 1 | +--- |
| 2 | +title: "How to test PostgreSQL 19 beta in your Kubernetes cluster" |
| 3 | +date: 2026-06-05 |
| 4 | +draft: false |
| 5 | +image: |
| 6 | + url: elephant-ship.png |
| 7 | + attribution: from <a href="https://jenikirbyhistory.getarchive.net/amp/media/a-cargo-of-seventy-elephants-landing-from-burmah-during-the-1857-mutiny-3ff978">Metropolitan Museum of Art</a> |
| 8 | +authors: |
| 9 | + - gbartolini |
| 10 | +tags: |
| 11 | + - postgresql |
| 12 | + - postgres |
| 13 | + - pg19beta1 |
| 14 | +summary: Participate in the PostgreSQL 19 beta program using Kubernetes and our CloudNativePG operator |
| 15 | +--- |
| 16 | +[PostgreSQL 19 Beta 1 was released yesterday](https://www.postgresql.org/about/news/postgresql-19-beta-1-released-3313/) |
| 17 | +by the PostgreSQL Global Development Group, containing previews of all features |
| 18 | +that will be available when PostgreSQL 19 is made generally available. |
| 19 | + |
| 20 | +The CloudNativePG community has made available the operand container images for |
| 21 | +PostgreSQL 19 beta 1 in our |
| 22 | +[`postgres-containers` image registry](https://github.com/cloudnative-pg/postgres-containers/pkgs/container/postgresql) |
| 23 | +to be used with the CloudNativePG operator. The images follow our current |
| 24 | +naming convention — for example `19beta1-minimal-trixie` — and are not |
| 25 | +intended for production use. |
| 26 | + |
| 27 | +Please join us in testing the new features of PostgreSQL 19 with CloudNativePG, |
| 28 | +and help us diagnose and fix bugs in Postgres before the final launch. |
| 29 | + |
| 30 | +Here follows a quick example of a 3 instance Postgres 19 `Cluster` manifest to be |
| 31 | +deployed in your Kubernetes cluster. |
| 32 | + |
| 33 | + |
| 34 | +```yaml |
| 35 | +apiVersion: postgresql.cnpg.io/v1 |
| 36 | +kind: Cluster |
| 37 | +metadata: |
| 38 | + name: pg19 |
| 39 | + |
| 40 | +spec: |
| 41 | + imageName: ghcr.io/cloudnative-pg/postgresql:19beta1-minimal-trixie |
| 42 | + instances: 3 |
| 43 | + storage: |
| 44 | + size: 1Gi |
| 45 | +``` |
| 46 | +
|
| 47 | +Once deployed, you can easily verify the version with: |
| 48 | +
|
| 49 | +```shell |
| 50 | +kubectl exec -ti pg19-1 -c postgres -- psql -qAt -c 'SELECT version()' |
| 51 | +``` |
| 52 | + |
| 53 | +Returning something similar to: |
| 54 | + |
| 55 | +```console |
| 56 | +PostgreSQL 19beta1 (Debian 19~beta1-1.pgdg13+1) on aarch64-unknown-linux-gnu, |
| 57 | + compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit |
| 58 | +``` |
| 59 | + |
| 60 | +If you are interested in trying CloudNativePG on your laptop with `kind` |
| 61 | +(Kubernetes in Docker), follow the instructions you find in the |
| 62 | +[Quickstart](https://cloudnative-pg.io/docs/devel/quickstart/). |
0 commit comments