postgres.app

Postgres - could not connect to server after trying rake db:create:all

孤街醉人 提交于 2019-12-11 05:46:17
问题 I'm trying to get Postgres up and running on OS X Lion - homebrew - rvm. http://railscasts.com/episodes/342-migrating-to-postgresql After following the above instructions, I ran into the same problem described here: Repairing Postgresql after upgrading to OSX 10.7 Lion Running which psql yieled usr/bin/psql when it should be usr/local/bin/psql Ok, so I modified the path like this (this is all that is in the file): export PATH="/usr/local/bin:$PATH" [[ -s "/Users/chase/.rvm/scripts/rvm" ]] &&

Postgres.app upgrade, now Rails app won't start

一曲冷凌霜 提交于 2019-12-07 15:50:07
问题 I just upgraded my Postgres.app to latest version (9.2.4.1) am now unable to start my Rails app using Foreman or Rails server. /Users/memoht/Sites/myapp/.gem/ruby/1.9.3/gems/pg-0.15.1/lib/pg.rb:4:in `require': dlopen(/Users/memoht/Sites/myapp/.gem/ruby/1.9.3/gems/pg-0.15.1/lib/pg_ext.bundle, 9): Library not loaded: @executable_path/../lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Applications/Postgres.app/Contents/MacOS/lib/libpq.dylib Reason: image not found - /Users/memoht/Sites

How to downgrade/have a previous version of Postgres DB in Postgres.app

丶灬走出姿态 提交于 2019-12-07 03:52:28
问题 I have installed Postgres.app from here (http://postgresapp.com) a couple of days ago. It comes with Postgres 9.4.4. Today I realised that the software I am using officially supports only Postgres 9.3. The 9.4.4 version works, but sometimes there are DB locks. Is there a way to downgrade my current db (very small in size, created just for testing), which is version 9.4.4 to 9.3? Or is it possible to create another DB with version 9.3 without uninstalling current version of Postgres.app? OS: