【Mac】Postgres 9.6→10.1へバージョンアップ対応
不用意に brew upgrade
してしまった影響は、今だに出ているので、その対応を細々と。
元々入っていたPostgresのバージョンが9.6から10.1 にバージョンが上がった為、Postgresを起動しようとするとエラーで起動できなくなったので、その対応
$ postgres -D /usr/local/var/postgres 2018-01-22 14:18:16.340 JST [14935] FATAL: database files are incompatible with server 2018-01-22 14:18:16.340 JST [14935] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.1.続きを読む