Opened 9 years ago

Last modified 6 years ago

#2698 new defect

v.external/g.remove: cannot remove link to external postgis table if db no longer exists

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.2.4
Component: Database Version: svn-trunk
Keywords: external database Cc:
CPU: Unspecified Platform: Unspecified

Description

createdb testdb
psql -d testdb -c "create extension postgis"
v.out.postgis hospitals out="PG:dbname=testdb"
v.external in="PG:dbname=testdb" layer=hospitals out=pg_hospitals
dropdb testdb
g.remove vect name=pg_hospitals -f
Removing vector <pg_hospitals>
ERREUR: Connection to PostgreSQL database failed. Try to set up
        username/password by db.login.
        FATAL: la base de données « testdb » n'existe pas

I have to recreate the database and create the postgis extension before I can erase the link.

The same problem arises if the database is renamed.

There should be an option to force remove externally linked maps if the original doesn't exist anymore.

I do not have this problem with raster and vector files linked via v./r.external and moved to another location on the disk. I can still remove them without any problems.

Change History (6)

comment:1 by neteler, 8 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:2 by neteler, 7 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:3 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:4 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:6 by martinl, 6 years ago

Milestone: 7.2.4
Note: See TracTickets for help on using tickets.