Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not commit changes to layer..." and "duplicate key value violates..." errors when committing changes in postgis #12247

Closed
qgib opened this issue Dec 3, 2009 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Dec 3, 2009

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 2187

Redmine category:data_provider
Assignee: nobody -


This ticket was open after the observations made here

http://lists.osgeo.org/pipermail/qgis-developer/2009-December/008552.html

To replicate:
use the "regions" layer you can find in the spatialite sample dataset: you can save it as shapefile and import to postgis. Tested also with other layers, like the "world borders" vector.

In qgis trunk (but not in 1.3) after merging non adjacent or non overlapping features (or features with islands) of a postgis layer, after toggling editing to save changes, the program returns

"ERROR: duplicate key value violates unique constraint "regions_pkey""

and after that

"Could not commit changes to layer regions
Errors: ERROR: 1 feature(s) not added.
SUCCESS: 2 feature(s) deleted."

If the same is done on a spatialite layer only the latter message is shown (again, only in trunk, not in 1.3).

@qgib
Copy link
Contributor Author

qgib commented Dec 3, 2009

Author Name: Giovanni Manghi (@gioman)


meanwhile the problem seems to have been solved in spatialite, not yet in postgis

@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2009

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2009

Author Name: Giovanni Manghi (@gioman)


probably fixed by 58c68ef (SVN r12419)

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib added this to the Version 1.4.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant