-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Postgres won't start after upgrading to 9.2 on lion #15045
Comments
|
Follow these steps please: https://github.com/mxcl/homebrew/wiki/Bug-Fixing-Checklist |
Did you also upgrade the database? Moving between major versions, such as going from 9.1.4 to 9.2.0, requires a database dump and reload and the server won't boot unless this is done. |
If you Basically: launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
/usr/local/Cellar/postgresql/9.1.4/bin/pg_ctrl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
/usr/local/Cellar/postgresql/9.1.4/bin/pg_dumpall > backup
/usr/local/Cellar/postgresq/9.1.4/bin/pg_ctrl -D /usr/local/var/postgres stop -s -m fast
mv /usr/local/var/postgres{,.9.1.4}
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
psql -d postgres -f backup Unfortunately, if you have already run a |
|
@sweded This is more likely to be the common pg shared buffers problem, which might have been overriden (?) after pg update. See Mac OS section of http://www.postgresql.org/docs/9.2/static/kernel-resources.html |
Good to know on the versions thing. It has been many months since I had to actually update anything related to homebrew so I was unaware of that addition. @gmile Good to point out another possible issue, but having just upgraded to 9.2 from 9.1.4 myself it was exactly a database version mismatch which caused 9.2 to not start for me. |
Closing due to no response from the original poster, but presumably the links and steps given in this conversation will fix the issue. |
Today I ran
brew update
followed bybrew upgrade
which brought my postgres installation from 9.1.4 to 9.2. Postgres no longer starts.I followed all the steps listed in
brew info postgres
including deleting the previous plist and copying the one for 9.2. Thelaunchctl
command informs me its already loaded. Tried starting postgres manually. Many reboots occurred along the way. The path looks correct/usr/local/bin/postgres
and the version ispostgres (PostgreSQL) 9.2.0
indicating the formula built correctly.The text was updated successfully, but these errors were encountered: