<div dir="ltr"><br><br>On Wed, Nov 7, 2018 at 2:39 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>> On Wed, 7 Nov 2018, Markus Metz wrote:<br>><br>> > I suggested v.db.droptable, not db.droptable. db.* commands work on<br>> > databases whereas v.* commands work on vectors. Thus you need to use<br>> > v.db.connect, not db.connect, to connect a table to a vector, e.g.:<br>> ><br>> > v.db.connect map=stations driver=pg database="willamette-river-hg"<br>> > table=stations layer=1<br>><br>> Markus M,<br>><br>>    Okay. Another step in my learning to use postgres databases with grass<br>> rther than the default.<br>><br>>    I don't know if this makes a difference, but the stations table has the<br>> same name in both databases. The grass map attribute table came from the<br>> postgres table. The other maps were developed in grass and I used db.copy<br>> with a name change to insert them in the postgres database.<br>><br>>    I'll use v.db.connect and v.db.droptable now.<br><div><br></div><div>a short summary (others may have similar problems).</div><div><br></div><div>db.connect sets the default database connection for subsequently created vector maps, already existing vector maps are not affected</div><div><br></div><div>v.db.connect sets the table and database connection for a given, existing vector. The default database connection can be overridden with the driver= and database= options</div><div><br></div><div>Hope that makes it clearer</div><div><br></div><div>Markus M<br></div><div>></div>> Many thanks,<br>><br>> Rich<br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>