LoginSignup
1
1

More than 5 years have passed since last update.

homebrewでのpostgresql9.4アップグレードメモ

Last updated at Posted at 2015-01-10

9.3.0から9.4.0へ

psql --version
=> psql (PostgreSQL) 9.3.0
brew update
brew upgrade postgresql
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
mv /usr/local/var/postgres /usr/local/var/postgres93
initdb /usr/local/var/postgres -E utf8
pg_upgrade \
  -b /usr/local/Cellar/postgresql/9.3.0/bin \
  -B /usr/local/Cellar/postgresql/9.4.0/bin \
  -d /usr/local/var/postgres93 \
  -D /usr/local/var/postgres
cp /usr/local/Cellar/postgresql/9.4.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
psql --version
=> psql (PostgreSQL) 9.4.0
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1