create virtualenv dir recursively
ensure shmmax for postgres
Merge pull request #188 from phunehehe/postgresql

Postgresql