]> granicus.if.org Git - postgis/commitdiff
Added support to turn off the postgis_gist_sel() computations (see Makefile).
authorDavid Blasby <dblasby@gmail.com>
Wed, 16 Oct 2002 20:33:45 +0000 (20:33 +0000)
committerDavid Blasby <dblasby@gmail.com>
Wed, 16 Oct 2002 20:33:45 +0000 (20:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@200 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_estimate.c

index 45188b6760c371864bce79ffd4b08f054e787daf..cead7fb67bc11addb304cae5b2e322ff948cdfcf 100644 (file)
@@ -541,7 +541,7 @@ PG_FUNCTION_INFO_V1(postgis_gist_sel);
 Datum postgis_gist_sel(PG_FUNCTION_ARGS)
 {
                Query      *root = (Query *) PG_GETARG_POINTER(0);
-               Oid                     operator = PG_GETARG_OID(1);
+       //      Oid                     operator = PG_GETARG_OID(1);
                List       *args = (List *) PG_GETARG_POINTER(2);
                int                     varRelid = PG_GETARG_INT32(3);
                GEOMETRY        *in;
@@ -564,6 +564,10 @@ Datum postgis_gist_sel(PG_FUNCTION_ARGS)
 
                double myest;
 
+#ifndef USE_STATS
+       PG_RETURN_FLOAT8(0.000005);
+#endif
+
                  //PG_RETURN_FLOAT8(0.000005);
 
                //elog(NOTICE,"postgis_gist_sel was called");