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: | |
|---|---|---|---|
| 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 , 8 years ago
| Milestone: | 7.1.0 → 7.2.0 |
|---|
comment:3 by , 7 years ago
| Milestone: | 7.2.1 → 7.2.2 |
|---|
comment:6 by , 6 years ago
| Milestone: | → 7.2.4 |
|---|
Note:
See TracTickets
for help on using tickets.

Milestone renamed