From: Sandro Santilli Date: Sun, 29 Feb 2004 21:53:42 +0000 (+0000) Subject: bug fix in postgis_gist_sel (for PG75): SysCache is not released if not acquired X-Git-Tag: pgis_0_8_2~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=894f7054c09ad85847a88cd596c5ca0b559fed30;p=postgis bug fix in postgis_gist_sel (for PG75): SysCache is not released if not acquired git-svn-id: http://svn.osgeo.org/postgis/trunk@456 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_estimate.c b/postgis_estimate.c index dea500ff2..8cc37cd43 100644 --- a/postgis_estimate.c +++ b/postgis_estimate.c @@ -11,6 +11,9 @@ * ********************************************************************** * $Log$ + * Revision 1.13 2004/02/29 21:53:42 strk + * bug fix in postgis_gist_sel (for PG75): SysCache is not released if not acquired + * * Revision 1.12 2004/02/26 16:42:59 strk * Fixed bugs reported by Mark Cave-Ayland . * Re-introduced previously removed estimate value incrementation by @@ -1018,7 +1021,6 @@ Datum postgis_gist_sel(PG_FUNCTION_ARGS) #if DEBUG_GEOMETRY_STATS elog(NOTICE, " SearchSysCache returned NULL - ret.def."); #endif - ReleaseSysCache(stats_tuple); PG_RETURN_FLOAT8(DEFAULT_GEOMETRY_SEL); } @@ -1046,7 +1048,7 @@ Datum postgis_gist_sel(PG_FUNCTION_ARGS) geomstats->xmax, geomstats->ymax); elog(NOTICE, " histo: boxesPerSide: %f", geomstats->boxesPerSide); elog(NOTICE, " histo: avgFeatureArea: %f", geomstats->avgFeatureArea); - elog(NOTICE, " histo: avgFeatureCells: %d", geomstats->avgFeatureCells); + elog(NOTICE, " histo: avgFeatureCells: %f", geomstats->avgFeatureCells); #endif /*