This is still valid for bionic and focal. It is possibly reproducible in jammy as well, but since we do not have an official newer version in to test in jammy, we cannot easily get a higher version to get a simple reproducer.
Steps to reproduce: From a bionic/focal vm: # apt update && apt install -y docker.io postgresql postgresql-common postgresql-client-common # docker run -d --name postgres-13 -p 5433:5432 -e POSTGRES_PASSWORD=postgres ubuntu/postgres:13-21.10_beta # pg_dump -h localhost --user postgres -p 5433 pg_dump: server version: 13.5 (Ubuntu 13.5-0ubuntu0.21.10.1); pg_dump version: 10.19 (Ubuntu 10.19-0ubuntu0.18.04.1) pg_dump: aborting because of server version mismatch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1796407 Title: pg_wrapper doesn't work when -p is used To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1796407/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs