rjioeg
Last Updated: February 25, 2016
·
4.317K
· 11449
Adf4fb5d7ac56029340be1371d8c4f47

Fixing postgres homebrew install after yosemite upgrade

for some reasons yosemite cleaned up some files/directories in /usr/local

for postgres installed via homebrew the following directories were missing to start postgres properly:

/usr/local/var/postgres/pg_tblspc
/usr/local/var/postgres/pg_twophase
/usr/local/var/postgres/pg_stat_tmp
Say Thanks
Respond

4 Responses
Add your response

17285
7d2ae37c73084dbfe9f0c46284dd6aa8

Works great! In one command:

mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}

over 1 year ago ·
17336
Backwardm logo

Thanks for the info... plus, the one-liner worked like a charm.

over 1 year ago ·
17734
B6eca45f935545bae23a23a2236df217

Nice, that one-liner fixed the issue for me as well.

over 1 year ago ·
20700
505be1447e8a0fc9ae12afcdc776df00

I was missing another directory, and the output from postgres -D /usr/local/var/postgres told me which one it was.

over 1 year ago ·