Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f19339

Browse files
committed
Back out libpq changes for service --- not ready yet.
1 parentb04d19f commit7f19339

File tree

1 file changed

+1
-52
lines changed

1 file changed

+1
-52
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
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 $
33
-->
44

55
<chapter id="libpq">
@@ -4031,57 +4031,6 @@ however.)
40314031
</sect1>
40324032

40334033

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-
40854034
<sect1 id="libpq-ssl">
40864035
<title>SSL Support</title>
40874036

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp