Bug report #13146

Postgis count not working

Added by baditaflorin - almost 9 years ago. Updated almost 9 years ago.

Category:Map Legend
Affected QGIS version:2.8.2 Regression?:No
Operating System:windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:21209


postgis count not working for a filtered database, with 2.8M points.

I only get a 0, and a pg_stat_activity QGIs does not even try to count. \\

the desired outcome would be to show something , loading, or not implemented, or error

postgis_count.PNG (82 KB) baditaflorin -, 2015-07-23 03:10 AM


#2 Updated by Giovanni Manghi almost 9 years ago

  • Status changed from Open to Feedback
  • Category set to Map Legend

Where I can get a dataset with that size to allow me do local tests?


#3 Updated by baditaflorin - almost 9 years ago

  • Status changed from Feedback to Closed

The dataset that i am using it`s the osm file for canada.

I think that it was not working because i am using a view to filter and not load everything into QGIS

I will test some more and return with the ticket if needed

a part of the VIEW looks like this

-- select * from nodes_view_addresses limit 5
CREATE OR REPLACE VIEW nodes_addresses_view AS
user_id, tstamp, changeset_id, version, nodes.id as node_ids, nodes.geom,users.id as u_ids,users.name as osmname,

FROM nodes,users
WHERE ST_GeometryType(geom) = 'ST_Point' AND users.id=nodes.user_id AND ((tags->'addr:housenumber')) is not null

Also available in: Atom PDF