PGPASSWORD
sets the password used if the backend demands password
authentication. This functionality is deprecated for security
-reasons; consider migrating to use the $HOME/.pgpass>
+reasons; consider migrating to use the
+$HOME/.pgpass>
file.
+
+ .pgpass
+
$HOME/.pgpass is a file that can contain passwords
to be used if the connection requires a password. This file should have the
format:
Entries with : or \ should be escaped
with \.
+The permissions on $HOME/.pgpass must disallow any
+access to world or group; achieve this by the command
+chmod 0600 $HOME/.pgaccess.
+If the permissions are less strict than this, the file will be ignored.