[GRASS-SVN] r72991 - grass/branches/releasebranch_7_4/db/drivers/postgres
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 15 11:38:37 PDT 2018
Author: neteler
Date: 2018-07-15 11:38:37 -0700 (Sun, 15 Jul 2018)
New Revision: 72991
Modified:
grass/branches/releasebranch_7_4/db/drivers/postgres/grass-pg.html
Log:
PostgreSQL driver manual: +password file (trunk, r72983)
Modified: grass/branches/releasebranch_7_4/db/drivers/postgres/grass-pg.html
===================================================================
--- grass/branches/releasebranch_7_4/db/drivers/postgres/grass-pg.html 2018-07-15 01:00:43 UTC (rev 72990)
+++ grass/branches/releasebranch_7_4/db/drivers/postgres/grass-pg.html 2018-07-15 18:38:37 UTC (rev 72991)
@@ -19,7 +19,24 @@
db.tables -p
</pre></div>
+<h3>Username and password</h3>
+From the <a href="https://www.postgresql.org/docs/10/static/libpq-pgpass.html">PostgresQL manual</a>:
+<p>
+The file <em>.pgpass</em> in a user's home directory 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 <em>%APPDATA%\postgresql\pgpass.conf</em> (where
+<em>%APPDATA%</em> refers to the Application Data subdirectory in the
+user's profile). Alternatively, a password file can be specified using
+the connection parameter passfile or the environment variable
+PGPASSFILE.
+
+This file should contain lines of the following format:
+<div class="code"><pre>
+hostname:port:database:username:password
+</pre></div>
+
<h2>Supported SQL commands</h2>
All SQL commands supported by PostgreSQL.
More information about the grass-commit
mailing list