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

Commitba95f2d

Browse files
committed
This patch adds information to the documentation on .pgpass and creates
additional index entries for it.Oliver Elphick
1 parent08e8c8a commitba95f2d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.97 2002/09/21 18:32:53 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.98 2002/11/03 01:30:46 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -2047,7 +2047,8 @@ sets the user name used to connect to the database and for authentication.
20472047
<envar>PGPASSWORD</envar>
20482048
sets the password used if the backend demands password
20492049
authentication. This functionality is deprecated for security
2050-
reasons; consider migrating to use the <filename>$HOME/.pgpass</>
2050+
reasons; consider migrating to use the <link linkend='pgpassfile'>
2051+
<filename>$HOME/.pgpass</></link>
20512052
file.
20522053
</para>
20532054
</listitem>
@@ -2133,6 +2134,11 @@ for information on correct values for these environment variables.
21332134
<primary>files</primary>
21342135
</indexterm>
21352136
<para>
2137+
<anchor id="pgpassfile"/>
2138+
<indexterm>
2139+
<primary>password</primary>
2140+
<secondary>.pgpass</secondary>
2141+
</indexterm>
21362142
<filename>$HOME/.pgpass</filename> is a file that can contain passwords
21372143
to be used if the connection requires a password. This file should have the
21382144
format:
@@ -2144,6 +2150,11 @@ anything. The first match will be used so put more specific entries first.
21442150
Entries with <literal>:</literal> or <literal>\</literal> should be escaped
21452151
with <literal>\</literal>.
21462152
</para>
2153+
<para>
2154+
The permissions on <filename>$HOME/.pgpass</filename> must disallow any
2155+
access to world or group; achieve this by the command
2156+
<command>chmod 0600 $HOME/.pgaccess</command>.
2157+
If the permissions are less strict than this, the file will be ignored.
21472158
</sect1>
21482159

21492160
<sect1 id="libpq-threading">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp