vagrant-pgsql9 allows you to run Postgresql 9.1 on VirtualBox.
-
Install VirtualBox
https://www.virtualbox.org/wiki/Downloads -
Install Vagrant
$ gem install vagrant
-
Add a box
$ vagrant box add precise32 http://files.vagrantup.com/precise32.box
-
Clone this repository
That's it!
$ cd [path/to/repo/]
$ vargrant up
$ psql -h 127.0.0.1 -p 15432 -u postgres
$ vagrant halt