I have app that is running Ruby 1.9.2, Rails 3, and postgreSQL 8.3. It was originally setup and working with postgreSQL 9.1, but I uninstalled 9.1 and installed and changed
You may need to remove and re-install the pg gem, so it's compiled against the correct version of Postgres.
pg