I am trying to use Postgresql with Heroku. I installed Postgres 9.1.4 using the installer downloaded from http://www.enterprisedb.com/products-services-training/pgdownload. Then in my /etc/profile I added the location of psql to my PATH. When I attempt to use the psql shell with Heroku I get a segmentation fault but it seems to work fine when I try to use it locally:
[Sun Aug 05 20:17:47] : which psql
/Library/PostgreSQL/9.1/bin/psql
[Sun Aug 05 20:22:15] : heroku pg:psql
psql (9.1.4)
Segmentation fault
[Sun Aug 05 20:22:21] : psql -U postgres
Password for user postgres:
psql (9.1.4)
Type "help" for help.
postgres=# \q
[Sun Aug 05 20:22:29] : heroku version
heroku-toolbelt/2.30.2 (universal-darwin10.0) ruby/1.8.7
I did notice that heroku version shows ruby/1.8.7 but I am using rvm use 1.9.3. Could this Ruby mismatch be the problem? If so, how do I fix it? I am not sure what to do next since the segmentation fault error message was pretty vague. This is all on Mac OS X 10.6.8.
I contacted Heroku support and they suggested installing Postgres via Homebrew (http://mxcl.github.com/homebrew/). I did this and now I can access my Heroku databases.