From 7698eddc411bf5e44e433eb07d5c716661ce8c24 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 7 Jan 2005 12:24:13 +0000 Subject: [PATCH] dropped dump(geometry) for PGSQL<73 builds git-svn-id: http://svn.osgeo.org/postgis/trunk@1253 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_dump.c | 19 ++++--------------- lwgeom/lwpostgis.sql.in | 4 ++++ 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/lwgeom/lwgeom_dump.c b/lwgeom/lwgeom_dump.c index b46eb4182..7dfeed0a1 100644 --- a/lwgeom/lwgeom_dump.c +++ b/lwgeom/lwgeom_dump.c @@ -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 #include @@ -196,3 +184,4 @@ Datum LWGEOM_dump(PG_FUNCTION_ARGS) } +#endif // USE_VERSION > 72 diff --git a/lwgeom/lwpostgis.sql.in b/lwgeom/lwpostgis.sql.in index 5c1cfb422..6381e8dff 100644 --- a/lwgeom/lwpostgis.sql.in +++ b/lwgeom/lwpostgis.sql.in @@ -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 + ------------------------------------------------------------------------ -- -- 2.40.0