PGPORT
PGPORT is an environment variable used by PostgreSQL client libraries (libpq) and accompanying command-line tools to specify the TCP port to use when connecting to a database server. It is a client-side setting and does not affect server configuration. If PGPORT is not set, clients use the port specified in a connection string or default to 5432.
PGPORT is typically used alongside other connection context variables such as PGHOST and PGUSER. Setting PGPORT
PGPORT must be a valid port number (1-65535). If the value is invalid, the connection will fail.
Security considerations: environment variables can be exposed through process listings on some systems or inherited by