Patrick Raphael <praphael(at)vt(dot)edu> writes:
> I figured out the problem, postmaster when run as postgres didn't have
> write permissions to /var/run/postgresql directory (where the Debian
> version puts its socket files) and therefore didn't have permission to
> open the socket. .
ROTFL ... score one for the Debian package's gratuitously non-standard
placement of the sockets ...
(Nothing to do with you, Patrick, but this has been a sore spot for
awhile with some of us.)
regards, tom lane