From 3fd8a10c3784139f3176c37c012e5d2d2dc1f00f Mon Sep 17 00:00:00 2001 From: David Blasby Date: Wed, 16 Oct 2002 20:33:45 +0000 Subject: [PATCH] Added support to turn off the postgis_gist_sel() computations (see Makefile). git-svn-id: http://svn.osgeo.org/postgis/trunk@200 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_estimate.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgis_estimate.c b/postgis_estimate.c index 45188b676..cead7fb67 100644 --- a/postgis_estimate.c +++ b/postgis_estimate.c @@ -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"); -- 2.40.0