[GRASS-SVN] r70387 - grass/branches/releasebranch_7_2/db/drivers/postgres

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 17 11:28:47 PST 2017


Author: martinl
Date: 2017-01-17 11:28:47 -0800 (Tue, 17 Jan 2017)
New Revision: 70387

Modified:
   grass/branches/releasebranch_7_2/db/drivers/postgres/grass-pg.html
Log:
PG DB driver: update connection example (merge r70386 from trunk)

Modified: grass/branches/releasebranch_7_2/db/drivers/postgres/grass-pg.html
===================================================================
--- grass/branches/releasebranch_7_2/db/drivers/postgres/grass-pg.html	2017-01-17 19:27:02 UTC (rev 70386)
+++ grass/branches/releasebranch_7_2/db/drivers/postgres/grass-pg.html	2017-01-17 19:28:47 UTC (rev 70387)
@@ -13,9 +13,8 @@
 
 <div class="code"><pre>
 # example for connecting to a PostgreSQL server:
-db.connect driver=pg database="host=myserver.osgeo.org,dbname=mydb"
-# password is asked interactively if not specified:
-db.login user=myname [pass=secret]
+db.connect driver=pg database=mydb
+db.login user=myname pass=secret host=myserver.osgeo.org
 db.connect -p
 db.tables -p
 </pre></div>



More information about the grass-commit mailing list