I am working on a rails app.
Installed Postgresql using postgresql-9.1.2-1-osx.dmg
Installed pg gem.
Then when I executed rake db:create
getting the
this is not a direct answer to the question but can arise frequently
Two additional cases that might be of interest if you have upgraded PostgreSQL with homebrew:
you may actually have numerous versions of pg to rely upon
when you run
gem uninstall pg
if you have more than one version, the system will ask which version you wish to delete. But that list may be useful to you! As an alternative to awenkhh's answer you may stop there and reset your gems to an acceptable version