See also the section called “Running a PostgreSQL database on another server”.
Figure 6.1. Multiple-server configuration