"zhuge xiao" <zhuge(at)Rinaix(dot)cn> writes:
> could not connect to server: Permission denied
> Is the server running locally and accepting connections on Unix domain
> socket "/tmp/.s.PGSQL.5432"?
"Permission denied" indicates a file permissions problem. Check the
permissions on /tmp and on the socket file itself. If you have SELinux
enabled in enforcing mode, you might also have a SELinux policy problem
--- is your selinux-policy package up to date?
regards, tom lane