Server: Simplify PG12/Postgis 3 interaction

This commit is contained in:
Raúl Marín
2020-04-07 12:12:05 +02:00
parent 4b6c5a23db
commit ef7c158e4b
8 changed files with 64 additions and 130 deletions

View File

@@ -1,11 +0,0 @@
-- PG12_DEPRECATED
-- Create geomval if it doesn't exist (in postgis 3+ it only exists in postgis_raster)
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'geomval') THEN
CREATE TYPE cdb_dataservices_server.geomval AS (
geom geometry,
val double precision
);
END IF;
END$$;