From 2f51e7b33b3e9e172be25a15a4d195d3b439c537 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 17 Dec 2004 18:00:33 +0000 Subject: [PATCH] LWGEOM_gist_joinsel defined for all PG versions git-svn-id: http://svn.osgeo.org/postgis/trunk@1164 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_estimate.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lwgeom/lwgeom_estimate.c b/lwgeom/lwgeom_estimate.c index e0133fec0..05419dc64 100644 --- a/lwgeom/lwgeom_estimate.c +++ b/lwgeom/lwgeom_estimate.c @@ -26,6 +26,7 @@ #include "liblwgeom.h" #include "lwgeom_pg.h" + #if USE_VERSION >= 80 #include "commands/vacuum.h" @@ -718,6 +719,18 @@ Datum estimate_lwhistogram2d(PG_FUNCTION_ARGS) } +// JOIN selectivity in the GiST && operator +// for all PG versions +PG_FUNCTION_INFO_V1(LWGEOM_gist_joinsel); +Datum LWGEOM_gist_joinsel(PG_FUNCTION_ARGS) +{ +#if DEBUG_GEOMETRY_STATS + elog(NOTICE, "LWGEOM_gist_joinsel called (returning %f)", + DEFAULT_GEOMETRY_JOINSEL); +#endif + PG_RETURN_FLOAT8(DEFAULT_GEOMETRY_JOINSEL); +} + /**************************** FROM POSTGIS ****************/ @@ -1312,17 +1325,6 @@ Datum LWGEOM_gist_sel(PG_FUNCTION_ARGS) } -// JOIN selectivity in the GiST && operator -PG_FUNCTION_INFO_V1(LWGEOM_gist_joinsel); -Datum LWGEOM_gist_joinsel(PG_FUNCTION_ARGS) -{ -#if DEBUG_GEOMETRY_STATS - elog(NOTICE, "LWGEOM_gist_joinsel called (returning %f)", - DEFAULT_GEOMETRY_JOINSEL); -#endif - PG_RETURN_FLOAT8(DEFAULT_GEOMETRY_JOINSEL); -} - /* * This function is called by the analyze function iff @@ -2024,6 +2026,9 @@ Datum LWGEOM_estimated_extent(PG_FUNCTION_ARGS) /********************************************************************** * $Log$ + * Revision 1.17 2004/12/17 18:00:33 strk + * LWGEOM_gist_joinsel defined for all PG versions + * * Revision 1.16 2004/12/17 11:07:48 strk * Added missing prototype * -- 2.40.0