[GRASS-dev] [GRASS GIS] #2005: v.db.addtable and postgres schema problem

#2005: v.db.addtable and postgres schema problem
---------------------------+------------------------------------------------
Reporter: davidinosauro | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Database | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
---------------------------+------------------------------------------------
Hi all!
I'm using GRASS GIS 6.4 with a postgres database connection to a non-
default schema. Most of tools are fine with it, but `v.db.connect` has a
wired behavior:

When I run v.db.addtable on a map obtained with v.dissolve (thus without
attribute tables set), it gives a big output (attached) among wich some
"no such table" message from postgres.

After the call, the database table is created in the right schema (the one
defined with db.connect), but the database connection is NOT schema-
qualified:
{{{
# v.db.connect -p map=path_30_2__999_poly
Vector map <path_30_2__999_poly@pinzolo> is connected by:
layer <1> table <path_30_2__999_poly> in database
<host=localhost,port=5432,dbname=thesis> through driver <pg> with key
<cat>
}}}

In fact, at subsequent usage of that table, postgres complains that the
requested table (searched in public schema) does not exist.

As a workaround, I used `v.db.addtable` with
`table=<schema_name><map_name>`

Cheers
Davide

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2005&gt;
GRASS GIS <http://grass.osgeo.org>

#2005: v.db.addtable and postgres schema problem
---------------------------+------------------------------------------------
Reporter: davidinosauro | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Database | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
---------------------------+------------------------------------------------

Comment(by mmetz):

Replying to [ticket:2005 davidinosauro]:
> Hi all!
> I'm using GRASS GIS 6.4 with a postgres database connection to a non-
default schema. Most of tools are fine with it, but `v.db.connect` has a
wired behavior:
>
> When I run v.db.addtable on a map obtained with v.dissolve (thus without
attribute tables set), it gives a big output (attached) among wich some
"no such table" message from postgres.

Please try trunk r56701.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2005#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2005: v.db.addtable and postgres schema problem
---------------------------+------------------------------------------------
Reporter: davidinosauro | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: Shell Scripts | Version: 6.4.2
Keywords: v.db.addtable | Platform: Unspecified
      Cpu: Unspecified |
---------------------------+------------------------------------------------
Changes (by hamish):

  * keywords: => v.db.addtable
  * version: unspecified => 6.4.2
  * component: Database => Shell Scripts
  * milestone: => 6.4.4

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2005#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>