LoginSignup
0
0

More than 5 years have passed since last update.

Mac (el capitan) で、postgres をアップグレード

Last updated at Posted at 2016-04-16

こちらの記事をほぼそのままですが、herokuのPostgresのバージョンに合わせて、最新ではなく9.4.5を入れた。

mv /usr/local/var/postgres /usr/local/var/postgres9.3
initdb /usr/local/var/postgres -E utf8

rm -rf /usr/local/var/postgres

initdb --locale=ja_JP.UTF-8 /usr/local/var/postgres

pg_upgrade -d /usr/local/var/postgres9.3 \
-D /usr/local/var/postgres \
-b /usr/local/Cellar/postgresql/9.3.1/bin \
-B /usr/local/Cellar/postgresql94/9.4.5/bin
0
0
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
0
0