Using the Ubuntu 14.04 (Trusty) environment you should be able to use Postgres
9.5.3 according to the docs:
When I print the versions of both
pg_dump I get the following version mismatch:
psql (PostgreSQL) 9.5.3 pg_dump (PostgreSQL) 9.4.8
Locally I get the same versions.
It seems that the
pg_dump is not linked correctly.
Can be fixed by linking
pg_dump to the
ln -sfn /usr/lib/postgresql/9.5/bin/pg_dump /usr/bin/pg_dump
Maybe this is something that can be fixed in the environment by default?