host
- Name of host to connect to. If a non-zero-length string is
- specified, TCP/IP communication is used, else Unix sockets.
+ Name of host to connect to.
Using this parameter causes a hostname look-up. See hostaddr.
+ If it begins with a slash, it is used
+ as the path to a unix domain socket.
PGHOST sets the default server name.
-If a non-zero-length string is specified, TCP/IP communication is used.
+If it beings with a slash, it is used as the path to a unix domain
+socket.
Without a host name, libpq will connect using a local Unix domain socket.