From b04d19f23000357a97d1285b15289c3edac5591f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 28 Feb 2006 22:34:24 +0000 Subject: Fix PG_VERSION_NUM for different awk -F handling. --- doc/src/sgml/libpq.sgml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 3fb6a4a85af..48e9a2de3fd 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -4031,6 +4031,57 @@ however.) + +The Connection Service File + + + connection service file + + + pg_service.conf + + + +The file pg_service.conf in the sysconf +directory (typically /usr/local/pgsql/etc) can assocate a +group of libpq connection parameters with a single service name that +can be specified in the libpq connection. +. a user's home directory or the +file referenced by PGPASSFILE can contain passwords to +be used if the connection requires a password (and no password has been +specified otherwise). On Microsoft Windows the file is named +%APPDATA%\postgresql\pgpass.conf (where +%APPDATA% refers to the Application Data subdirectory in +the user's profile). + + + +This file should contain lines of the following format: + +hostname:port:database:username:password + +Each of the first four fields may be a literal value, or *, +which matches anything. The password field from the first line that matches the +current connection parameters will be used. (Therefore, put more-specific +entries first when you are using wildcards.) +If an entry needs to contain : or +\, escape this character with \. +A hostname of localhost matches both host (TCP) +and local (Unix domain socket) connections coming from the +local machine. + + + +The permissions on .pgpass must disallow any +access to world or group; achieve this by the command +chmod 0600 ~/.pgpass. +If the permissions are less strict than this, the file will be ignored. +(The file permissions are not currently checked on Microsoft Windows, +however.) + + + + SSL Support -- cgit v1.2.3