launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist cd /usr/local/var tar -vcf postgres-data-9.4.tar postgres mv postgres postgres.old initdb postgres -E utf8 pg_upgrade --old-datadir postgres.old \ --new-datadir postgres \ --old-bindir /usr/local/Cellar/postgresql/9.4.5_2/bin/ \ --new-bindir /usr/local/Cellar/postgresql/9.5.0/bin launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist ./analyze_new_cluster.sh