From: Paul Ramsey Date: Tue, 20 Nov 2012 21:31:12 +0000 (+0000) Subject: Make error message minimally more helpful X-Git-Tag: 2.1.0beta2~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=049bf95fa0d52ef13845bc3836ef469e472bf0e3;p=postgis Make error message minimally more helpful git-svn-id: http://svn.osgeo.org/postgis/trunk@10723 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geometry_estimate.c b/postgis/geometry_estimate.c index c4070a040..df5ab4e10 100644 --- a/postgis/geometry_estimate.c +++ b/postgis/geometry_estimate.c @@ -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 */