Bug report #16915

estimatedmetadata=true parameter on postgres datasource reports wrong number of features when filtering layer

Added by Nikolay Lebedev about 5 years ago. Updated about 5 years ago.

Category:Data Provider/PostGIS
Affected QGIS version:2.18.10 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:24814


When postgres datasource has estimatedmetadata=true parameter, layer reports wrong number of features.
This can be easily seen when setting provider filter and hitting "Test" button.
Dialog will report total feature count instead of number of selected features.

This also affects python api: layers with set filters have all datasource features instead of matching.

Related issues

Duplicates QGIS Application - Bug report #5769: Test filter in old query builder incorrect Closed 2012-06-08


#1 Updated by Jürgen Fischer about 5 years ago

  • Assignee deleted (Jürgen Fischer)

#2 Updated by Jürgen Fischer about 5 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

duplicate of #5769

#3 Updated by Jürgen Fischer about 5 years ago

Also available in: Atom PDF