原链接
使用root 用户 su postgres切换到postgres用户时 提示
su postgres
could not change directory to "/root"
使用
su - postgres