Skip to content

Commit

Permalink
Install postgresql-client-${PG_MAJOR} instead of postgresql-client (
Browse files Browse the repository at this point in the history
#892)

This ensures that the client tools we installed are compatible with the
version of the Postgres cluster.
  • Loading branch information
tgxworld authored Dec 3, 2024
1 parent 69d7558 commit a0be7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN --mount=type=tmpfs,target=/var/log \
dpkg-divert --local --rename --add /sbin/initctl; \
sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl"; \
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install runit socat \
libpq-dev postgresql-client \
libpq-dev postgresql-client-${PG_MAJOR} \
postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector \
nodejs yarn &&\
mkdir -p /etc/runit/1.d
Expand Down

1 comment on commit a0be7c9

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/backups-fail-with-postgres-16-database-and-all-pg-13/343432/1

Please sign in to comment.