Postgres upgrade issue from 9.3 to 9.4
You didn't upgrade the database. You're likely on a system that permits different versions of PostgreSQL to run concurrently and you likely have two versions of the server running on two different ports. Usually 5432..543x. You'll have to


use pg_dump on the server running with the old port (the one you're connecting to here).
use pg_restore on the server running with the new port (that you probably didn't even know was running)


Try

sudo rgrep -i "port =" /etc/postgresql


Or, if you have Debian/Ubuntu, run pg_lsclusters