Allow postgresql socket. Allow postgres and main package to be specified