[postgis-devel] [PostGIS] #1043: ST_ValueCount proto returns integer instead of bigint

PostGIS trac at osgeo.org
Mon Jun 20 20:21:37 PDT 2011

#1043: ST_ValueCount proto returns integer instead of bigint
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  low             |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  

Comment(by dustymugs):

 The base ST_ValueCount returns an integer (or a set of) while the coverage
 ST_ValueCount returns bigint.  The coverage version returns bigint because
 it uses a sum aggregate where PostgreSQL likes to use a bigint for a set
 of integers.  If I had made the base ST_ValueCount return a bigint instead
 of an integer, the coverage ST_ValueCount would have returned numeric.

Ticket URL: <http://trac.osgeo.org/postgis/ticket/1043#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.

More information about the postgis-devel mailing list