PostgreSQL comes in a variety of distributions. In many of these, you will note that remote access is initially disabled as a security measure.