Skip to content

Conversation

@jay-knight
Copy link

@jay-knight jay-knight commented Oct 22, 2024

Running the existing image against a postgres 15 database results in

pg_dump: error: server version: 15.8 (Debian 15.8-1.pgdg120+1); pg_dump version: 14.0 (Debian 14.0-1.pgdg100+1)
pg_dump: error: aborting because of server version mismatch

This update to the Dockerfile allows using a build arg to specify the version of postgres client tools you want to install. You could use this to build one for each version of postgres.

According to https://wiki.postgresql.org/wiki/Apt, the versions currently available in the apt repo are 10, 11, 12, 13, 14, 15, 16, 17, 18 devel

Running the existing image against a postgres 15 database results in 

```
pg_dump: error: server version: 15.8 (Debian 15.8-1.pgdg120+1); pg_dump version: 14.0 (Debian 14.0-1.pgdg100+1)
pg_dump: error: aborting because of server version mismatch
```

This update to the Dockerfile allows using a build arg to specify the version of postgres you want to install. You could use this to build one for each version of postgres.

According to https://wiki.postgresql.org/wiki/Apt, the versions currently available in the apt repo are 10, 11, 12, 13, 14, 15, 16, 17, 18 devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant