[postgis-devel] [PostGIS] #877: st_estimated_extent returns error on empty table

PostGIS trac at osgeo.org
Tue Mar 22 02:31:03 PDT 2011


#877: st_estimated_extent returns error on empty table
---------------------+------------------------------------------------------
 Reporter:  martins  |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 1.5.3
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Note that with current trunk the error message is this:
 ERROR:  LWGEOM_estimated_extent: no statistics for
 "(current_schema)"."t"."g" (empty table ? did you run ANALYZE ?)

 The condition is the same when the table is NOT empty but you didn't run
 analyze yet.
 Do we want to always return NULL, or try to tell the two cases apart ?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/877#comment:4>
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