]> granicus.if.org Git - postgis/commitdiff
dropped dump(geometry) for PGSQL<73 builds
authorSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 12:24:13 +0000 (12:24 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 12:24:13 +0000 (12:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1253 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_dump.c
lwgeom/lwpostgis.sql.in

index b46eb41825f52992199887ee23a277b8923e5215..7dfeed0a15600364b1323f27164830e50bab1c8a 100644 (file)
@@ -1,19 +1,7 @@
 /*
-
--- To enable the dump() function copy this SQL into lwpostgis.sql.in
--- and run make, then open lwpostgis.sql and feed the corresponding
--- queries to your spatial db
---
--- Also, add lwgeom_dump.o to OBJS variable in Makefile
-
-CREATE TYPE geometry_dump AS (path integer[], geom geometry);
-
-CREATEFUNCTION dump(geometry)
-       RETURNS SETOF geometry_dump
-       AS '@MODULE_FILENAME@', 'LWGEOM_dump'
-       LANGUAGE 'C' WITH (isstrict,iscachable);
-
-*/
+ * This only works for PGSQL > 72 
+ */
+#if USE_VERSION > 72
 
 #include <math.h>
 #include <float.h>
@@ -196,3 +184,4 @@ Datum LWGEOM_dump(PG_FUNCTION_ARGS)
 }
 
 
+#endif // USE_VERSION > 72
index 5c1cfb4226bc308486343b8a79d9134de5c41f43..6381e8dff07409b41bf39d76bfc5ad626826fb61 100644 (file)
@@ -1834,6 +1834,8 @@ CREATE AGGREGATE polygonize (
        finalfunc = polygonize_garray
        );
 
+#if USE_VERSION > 72
+
 CREATE TYPE geometry_dump AS (path integer[], geom geometry);
 
 CREATEFUNCTION dump(geometry)
@@ -1841,6 +1843,8 @@ CREATEFUNCTION dump(geometry)
        AS '@MODULE_FILENAME@', 'LWGEOM_dump'
        LANGUAGE 'C' WITH (isstrict,iscachable);
 
+#endif // USE_VERSION > 72
+
 ------------------------------------------------------------------------
 
 --