Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-postgres-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- examples/14
- examples/15
- examples/16
- examples/17
- examples/custom
steps:

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Added support for Postgres 17

## v1.5.0 - [September 1, 2025](https://github.com/lando/postgres/releases/tag/v1.5.0)

* Switched images to [bitnamilegacy](https://github.com/bitnami/containers/issues/83267) namespace
Expand Down
3 changes: 2 additions & 1 deletion builders/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ module.exports = {
name: 'postgres',
config: {
version: '10',
supported: ['16', '15', '14', '13', '12', '11', '11.1', '11.0', '10', '10.6.0', '9.6'],
supported: ['17', '16', '15', '14', '13', '12', '11', '11.1', '11.0', '10', '10.6.0', '9.6'],
pinPairs: {
'17': 'bitnamilegacy/postgresql:17.6.0-debian-12-r4',
'16': 'bitnamilegacy/postgresql:16.6.0-debian-12-r2',
'15': 'bitnamilegacy/postgresql:15.10.0-debian-12-r2',
'14': 'bitnamilegacy/postgresql:14.18.0-debian-12-r0',
Expand Down
8 changes: 4 additions & 4 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To upgrade the PostgreSQL major version you need to:
```yaml
services:
myservice:
type: postgres:16
type: postgres:17
portforward: false
creds:
database: database
Expand All @@ -53,7 +53,7 @@ services:
```yaml
services:
myservice:
type: postgres:16
type: postgres:17
portforward: true
```

Expand All @@ -62,7 +62,7 @@ services:
```yaml
services:
myservice:
type: postgres:16
type: postgres:17
portforward: 5432
```

Expand Down Expand Up @@ -110,7 +110,7 @@ Note that you can put your configuration files anywhere inside your application
```yaml
services:
myservice:
type: postgres:16
type: postgres:17
config:
database: config/my-custom.conf
```
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ You can easily add it to your Lando app by adding an entry to the [services](htt
```yaml
services:
myservice:
type: postgres:16
type: postgres:17
```

## Supported versions

* [17](https://hub.docker.com/r/bitnamilegacy/postgresql/tags?name=17.)
* [16](https://hub.docker.com/r/bitnamilegacy/postgresql/tags?name=16.)
* [15](https://hub.docker.com/r/bitnamilegacy/postgresql/tags?name=15.)
* [14](https://hub.docker.com/r/bitnamilegacy/postgresql/tags?name=14.)
Expand Down Expand Up @@ -45,4 +46,3 @@ services:
```

But make sure you use one of the available [patch tags](https://hub.docker.com/r/bitnamilegacy/postgresql/tags) for the underlying image we are using.

22 changes: 22 additions & 0 deletions examples/17/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lando-postgres-17
services:
defaults:
type: postgres:17
cross:
type: postgres:17
portforward: true
tooling:
healthcheckdefaults:
service: defaults
cmd: psql -U postgres -c "\\l"
verifydefaultsdatabase:
service: defaults
cmd: psql -P pager=off -U postgres -c "\dt *.*"
crossconnect:
service: defaults
cmd: psql -P pager=off -h cross -U postgres -c "\dt *.*"

# This is important because it lets lando know to test against the plugin in this repo
# DO NOT REMOVE THIS!
plugins:
"@lando/postgres": ../..
43 changes: 43 additions & 0 deletions examples/17/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# PostgreSQL 17 Example

This example exists primarily to test the following documentation:

* [Postgres Service](https://docs.lando.dev/plugins/postgres)

## Start up tests

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

## Verification commands

Run the following commands to validate things are rolling as they should.

```bash
# Should use 17 as the specified version
lando exec defaults -- psql -V | grep "17"

# Should see the default database on healthcheck
lando healthcheckdefaults | grep 'database'

# Should use the correct default user pass db
lando verifydefaultsdatabase | grep 'pg_database'

# Should be able to receive connections from the outside
lando crossconnect | grep 'pg_database'
```

## Destroy tests

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading