From: Sandro Santilli Date: Tue, 11 Sep 2018 09:19:25 +0000 (+0000) Subject: Make unpackaged from postgis_raster too X-Git-Tag: 3.0.0alpha1~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ffeea164a4ee6c506665f5fd77f87415c817f0;p=postgis Make unpackaged from postgis_raster too git-svn-id: http://svn.osgeo.org/postgis/trunk@16741 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extensions/make_unpackaged.sql b/extensions/make_unpackaged.sql index 37dfa0a7d..72eb6a9af 100644 --- a/extensions/make_unpackaged.sql +++ b/extensions/make_unpackaged.sql @@ -1,4 +1,4 @@ --- for postgis +-- for postgis SELECT 'ALTER EXTENSION ' || extname || ' ADD ' || regexp_replace( regexp_replace(pg_catalog.pg_describe_object(d.classid, d.objid, 0), E'cast from (.*) to (.*)', E'cast\(\\1 as \\2\)'), E'(.*) for access method (.*)', E'\\1 using \\2') || ';' AS sqladd @@ -8,6 +8,16 @@ WHERE d.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND deptype = 'e' AND e.extname = 'postgis' ORDER BY sqladd; +-- for postgis_raster +SELECT 'ALTER EXTENSION ' || extname || ' ADD ' || regexp_replace( + regexp_replace(pg_catalog.pg_describe_object(d.classid, d.objid, 0), E'cast from (.*) to (.*)', E'cast\(\\1 as \\2\)'), + E'(.*) for access method (.*)', E'\\1 using \\2') || ';' AS sqladd +FROM pg_catalog.pg_depend AS d +INNER JOIN pg_extension AS e ON (d.refobjid = e.oid) +WHERE d.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass +AND deptype = 'e' AND e.extname = 'postgis_raster' +ORDER BY sqladd; + -- for topology SELECT 'ALTER EXTENSION ' || extname || ' ADD ' || regexp_replace( regexp_replace(pg_catalog.pg_describe_object(d.classid, d.objid, 0), E'cast from (.*) to (.*)', E'cast\(\\1 as \\2\)'),