Bug report #6172

QGIS freezes when deleting features from big PostGIS table

Added by Serge Dikiy over 11 years ago. Updated over 11 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:15489



I have PostGIS table with 10e6 features. "Scale dependent" is set to display only 100-500 features. All work very fast..

But, if I want delete some features... QGIS freezes... because QGIS gets all 10e6 features from PostGIS.

See attachment.(test table have only 60 features)


qgis_del_Feature.txt Magnifier (28.6 KB) Serge Dikiy, 2012-08-08 01:12 PM

Associated revisions

Revision 2ab02218
Added by Jürgen Fischer over 11 years ago

recalculate vector layer extent only when necessary (fixes #6172)


#1 Updated by Jürgen Fischer over 11 years ago

  • Category changed from Data Provider/PostGIS to Vectors

Not a postgres provider problem. After features are deleted, the layer extents are recalculated by iterating all not deleted features.

#2 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Open to Closed

#3 Updated by Serge Dikiy over 11 years ago

Thank you, jef
Everything works great!

Also available in: Atom PDF