Bug report #6045
postgis: duplicate key when merging polygons
|Affected QGIS version:||1.8.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||15414|
When merging features (polygons) in a PostGIS database, when I save changes I get a duplicate key error. I'm copying attributes from one of the merged polygons, including the primary key. It looks like what is happening in the save is that QGIS first adds new features (the merged polygon is counted as new), then deletes old features (the pre-merged pieces). If I save a second time, there is no error because the old pieces have now been deleted.