[GRASS-SVN] r72983 - grass/trunk/db/drivers/postgres
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 13 02:36:07 PDT 2018
Author: mmetz
Date: 2018-07-13 02:36:07 -0700 (Fri, 13 Jul 2018)
New Revision: 72983
Modified:
grass/trunk/db/drivers/postgres/grass-pg.html
Log:
PostgreSQL driver manual: +password file
Modified: grass/trunk/db/drivers/postgres/grass-pg.html
===================================================================
--- grass/trunk/db/drivers/postgres/grass-pg.html 2018-07-13 08:31:30 UTC (rev 72982)
+++ grass/trunk/db/drivers/postgres/grass-pg.html 2018-07-13 09:36:07 UTC (rev 72983)
@@ -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