]> granicus.if.org Git - postgis/commitdiff
bug fix in postgis_gist_sel (for PG75): SysCache is not released if not acquired
authorSandro Santilli <strk@keybit.net>
Sun, 29 Feb 2004 21:53:42 +0000 (21:53 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 29 Feb 2004 21:53:42 +0000 (21:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@456 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_estimate.c

index dea500ff2ac68d89b21bf91e42ef5790afd77418..8cc37cd433bbf6c137f31fc02722cd181d9cc2e9 100644 (file)
@@ -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 <m.cave-ayland@webbased.co.uk>.
  * 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
 
        /*