PGPORT
The PGPORT environment variable passes the TCP port number on which the
PostgreSQL database listens.