jsonb type is only available since PostgreSQL 9.4.0
authorSandro Santilli <strk@kbt.io>
Sat, 24 Feb 2018 16:21:38 +0000 (16:21 +0000)
committerSandro Santilli <strk@kbt.io>
Sat, 24 Feb 2018 16:21:38 +0000 (16:21 +0000)
Closes #4028 (thanks Dronie for finding out)

git-svn-id: http://svn.osgeo.org/postgis/trunk@16416 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in

index 9949010eb1f3984ebcf74a2bbfedee8958eecad9..65f0b62038f67bccc90274284e3fb73b20d311d4 100644 (file)
@@ -4310,11 +4310,13 @@ CREATE OR REPLACE FUNCTION ST_GeomFromGeoJson(json)
         AS 'SELECT @extschema@.ST_GeomFromGeoJson($1::text)'
         LANGUAGE 'sql' IMMUTABLE STRICT _PARALLEL;
 
+#if POSTGIS_PGSQL_VERSION >= 94
 -- Availability: 2.5.0
 CREATE OR REPLACE FUNCTION ST_GeomFromGeoJson(jsonb)
         RETURNS geometry
         AS 'SELECT @extschema@.ST_GeomFromGeoJson($1::text)'
         LANGUAGE 'sql' IMMUTABLE STRICT _PARALLEL;
+#endif
 
 -- Availability: 2.0.0
 CREATE OR REPLACE FUNCTION postgis_libjson_version()