|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.202 2006/02/28 22:34:24 momjian Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.203 2006/02/28 22:35:35 momjian Exp $ |
3 | 3 | --> |
4 | 4 |
|
5 | 5 | <chapter id="libpq"> |
@@ -4031,57 +4031,6 @@ however.) |
4031 | 4031 | </sect1> |
4032 | 4032 |
|
4033 | 4033 |
|
4034 | | -<sect1 id="libpq-pgservice"> |
4035 | | -<title>The Connection Service File</title> |
4036 | | - |
4037 | | -<indexterm zone="libpq-pgservice"> |
4038 | | - <primary>connection service file</primary> |
4039 | | -</indexterm> |
4040 | | -<indexterm zone="libpq-pgservice"> |
4041 | | - <primary>pg_service.conf</primary> |
4042 | | -</indexterm> |
4043 | | - |
4044 | | -<para> |
4045 | | -The file <filename>pg_service.conf</filename> in the <literal>sysconf</> |
4046 | | -directory (typically <filename>/usr/local/pgsql/etc</>) can assocate a |
4047 | | -group of libpq connection parameters with a single service name that |
4048 | | -can be specified in the libpq connection. |
4049 | | -. a user's home directory or the |
4050 | | -file referenced by <envar>PGPASSFILE</envar> can contain passwords to |
4051 | | -be used if the connection requires a password (and no password has been |
4052 | | -specified otherwise). On Microsoft Windows the file is named |
4053 | | -<filename>%APPDATA%\postgresql\pgpass.conf</> (where |
4054 | | -<filename>%APPDATA%</> refers to the Application Data subdirectory in |
4055 | | -the user's profile). |
4056 | | -</para> |
4057 | | - |
4058 | | -<para> |
4059 | | -This file should contain lines of the following format: |
4060 | | -<synopsis> |
4061 | | -<replaceable>hostname</replaceable>:<replaceable>port</replaceable>:<replaceable>database</replaceable>:<replaceable>username</replaceable>:<replaceable>password</replaceable> |
4062 | | -</synopsis> |
4063 | | -Each of the first four fields may be a literal value, or <literal>*</literal>, |
4064 | | -which matches anything. The password field from the first line that matches the |
4065 | | -current connection parameters will be used. (Therefore, put more-specific |
4066 | | -entries first when you are using wildcards.) |
4067 | | -If an entry needs to contain <literal>:</literal> or |
4068 | | -<literal>\</literal>, escape this character with <literal>\</literal>. |
4069 | | -A hostname of <literal>localhost</> matches both <literal>host</> (TCP) |
4070 | | -and <literal>local</> (Unix domain socket) connections coming from the |
4071 | | -local machine. |
4072 | | -</para> |
4073 | | - |
4074 | | -<para> |
4075 | | -The permissions on <filename>.pgpass</filename> must disallow any |
4076 | | -access to world or group; achieve this by the command |
4077 | | -<command>chmod 0600 ~/.pgpass</command>. |
4078 | | -If the permissions are less strict than this, the file will be ignored. |
4079 | | -(The file permissions are not currently checked on Microsoft Windows, |
4080 | | -however.) |
4081 | | -</para> |
4082 | | -</sect1> |
4083 | | - |
4084 | | - |
4085 | 4034 | <sect1 id="libpq-ssl"> |
4086 | 4035 | <title>SSL Support</title> |
4087 | 4036 |
|
|
0 commit comments