It's possible to install both PostgreSQL 8.4 and 9.1 on Ubuntu. If you find that one of them is running and you want to run the other one to run then just stop postgres with this:
sudo /etc/init.d/postgres stop
Then if you want to start only postgres 9.1 you enter this command:
sudo /etc/init.d/postgres start 9.1
Comments !