ERROR: duplicate key value violates unique constraint... #15579
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
DB Manager
Relating to the DB Manager core plugin
Milestone
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 6279
Affected QGIS version: master
Redmine category:db_manager
Assignee: Giuseppe Sucameli
When importing a vector into PostGIS with DB manager, if the original vector has already a column "id" then the tool will give
Creation error for features from #0 to #0. Provider errors was:
PostGIS error while adding features: ERROR: duplicate key value
violates unique constraint "table_name_pkey"
DETAIL: Key (id)=(0) already exists.
As "id" is very common (unless the old "gid") I guess that a check should be added before trying to import the vector.
The text was updated successfully, but these errors were encountered: