[GRASS-SVN] r70386 - grass/trunk/db/drivers/postgres

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 17 11:27:02 PST 2017


Author: martinl
Date: 2017-01-17 11:27:02 -0800 (Tue, 17 Jan 2017)
New Revision: 70386

Modified:
   grass/trunk/db/drivers/postgres/grass-pg.html
Log:
PG DB driver: update connection example

Modified: grass/trunk/db/drivers/postgres/grass-pg.html
===================================================================
--- grass/trunk/db/drivers/postgres/grass-pg.html	2017-01-17 16:16:52 UTC (rev 70385)
+++ grass/trunk/db/drivers/postgres/grass-pg.html	2017-01-17 19:27:02 UTC (rev 70386)
@@ -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