select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.3 / 7.2 / 7.1
Historical version. PostgreSQL 7.1 reached end of support in April 2006. See the current manual for supported releases.

get_defhost

Name

get_defhost -- get default host name [DV]

Synopsis

get_defhost()

Parameters

none

Return Type

string or None

Default host specification

Exceptions

SyntaxError

Too many arguments.

Description

get_defhost() returns the current default host specification, or None if the environment variables should be used. Environment variables will not be looked up.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.