]> granicus.if.org Git - postgis/commitdiff
Make error message minimally more helpful
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 20 Nov 2012 21:31:12 +0000 (21:31 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 20 Nov 2012 21:31:12 +0000 (21:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10723 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geometry_estimate.c

index c4070a040304cc9cd4d05ef288dfd23d7f8c1218..df5ab4e10c7badfbe1497b4f2fc84f3014b5accc 100644 (file)
@@ -627,19 +627,19 @@ Datum geometry_gist_read_selectivity(PG_FUNCTION_ARGS)
 
        /* Calculate the gbox */
        if ( ! gserialized_datum_get_gbox_p(geom_datum, &gbox) )
-               elog(ERROR, "Unable to calculate search box from geometry");
+               elog(ERROR, "Unable to calculate bounding box from geometry");
        
        /* First pull the stats tuple */
        stats_tuple = SearchSysCache2(STATRELATT, ObjectIdGetDatum(table_oid), Int16GetDatum(attr_num));
        if ( ! stats_tuple )
-               elog(ERROR, "Unable to retreive stats tuple for oid(%d) attrnum(%d)", table_oid, attr_num);
+               elog(ERROR, "Unable to retreive stats tuple for oid(%d) attrnum(%d), run ANALYZE?", table_oid, attr_num);
                
        /* Then read the geom status histogram from that */
        rv = get_attstatsslot(stats_tuple, 0, 0, STATISTIC_KIND_GEOMETRY, InvalidOid, NULL, NULL, NULL, &floatptr, &nvalues);
        if ( ! rv )
        {
                ReleaseSysCache(stats_tuple);
-               elog(ERROR, "Unable to retreive geomstats");            
+               elog(ERROR, "Unable to retreive geomstats, hmmm.");             
        }
        
        /* Do the estimation */