Upgraded from 9.1 to 9.3 on my Ubuntu 12.04 server. Everything worked great but running commands like ‘createdb’ still runs them from the 9.1 path.
/usr/lib/postgresql/9.1/bin/createdb: unrecognized option....
Edit, additional info:
I used this gist https://gist.github.com/ibussieres/11262268
I already uninstalled 9.1 with the regular ‘sudo apt-get remove postgresql-9.1′
This is the output of requested commands
which createdb
/usr/bin/createdb
createdb --version
createdb (PostgreSQL) 9.1.14
which psql
/usr/bin/psql
psql --version
psql (PostgreSQL) 9.3.5