Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile update to install specific version of pg client tools #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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