=== modified file 'zsh-functions/zsv_defaults_postgresql' --- zsh-functions/zsv_defaults_postgresql 2014-06-28 04:29:51 +0000 +++ zsh-functions/zsv_defaults_postgresql 2014-06-28 04:18:57 +0000 @@ -76,7 +76,7 @@ parse_postgresql_config # TODO: support multiple socket directories - if ! [[ -d $pg_sockdir && -k $pg_sockdir ]]; then + if ! [[ -w $pg_sockdir ]]; then mkdir -p $pg_sockdir || exit $? chown $pg_user: ${socket_path} chmod 0775 $pg_sockdir