postgis 3.4 PG Debian 13.14-1.pgdg110+2 psql version 16 by default instead of version 13 #381
-
Hi,
The image is based on PG13.14v, but the default clien psql runs at v16, there is any reason to make like this?
By default, pg_config points to v16.
I wish the client version fixed at 13 when I build the image, how can I achieve that ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I actually don't know the answer..
[1]
$ docker run -it --rm postgis/postgis:13-3.4 bash -c "psql --version && which psql && find / -name psql "
psql (PostgreSQL) 13.14 (Debian 13.14-1.pgdg110+2)
/usr/bin/psql
/usr/lib/postgresql/13/bin/psql
/usr/bin/psql
$ docker run -it --rm postgres:13-bullseye bash -c "psql --version && which psql && find / -name psql "
psql (PostgreSQL) 13.14 (Debian 13.14-1.pgdg110+2)
/usr/bin/psql
/usr/lib/postgresql/13/bin/psql
/usr/bin/psql
$ docker run -it --rm postgis/postgis:13-3.4-alpine bash -c "psql --version && which psql && find / -name psql "
psql (PostgreSQL) 13.14
/usr/local/bin/psql
/usr/local/bin/psql |
Beta Was this translation helpful? Give feedback.
Thank you for your reply, you're totally right ! My team worker tried to modify the Dockerfile for adding the oracle_fdw extension. He coded
apk add postgresql-server-dev-all
, which should bepostgresql-server-dev-13