PGHOSThostname
PGHOSThostname is not an official PostgreSQL parameter. In practice, the term is sometimes used informally to refer to the hostname component that the PostgreSQL client environment variable PGHOST targets when establishing a connection. The article below explains the standard behavior of PGHOST and how a hostname value influences connections.
PGHOST is an environment variable used by PostgreSQL client libraries (libpq) to specify where to connect. When
Hostname values can be standard domain names (for example, db.example.com) or special values such as localhost.
PGHOST is commonly used alongside other connection parameters (PGPORT, PGDATABASE, PGUSER, PGPASSWORD, and optionally a pg_service