[postgis-tickets] r16741 - Make unpackaged from postgis_raster too

Sandro Santilli strk at kbt.io
Tue Sep 11 02:19:26 PDT 2018


Author: strk
Date: 2018-09-11 02:19:25 -0700 (Tue, 11 Sep 2018)
New Revision: 16741

Modified:
   trunk/extensions/make_unpackaged.sql
Log:
Make unpackaged from postgis_raster too

Modified: trunk/extensions/make_unpackaged.sql
===================================================================
--- trunk/extensions/make_unpackaged.sql	2018-09-11 09:19:20 UTC (rev 16740)
+++ trunk/extensions/make_unpackaged.sql	2018-09-11 09:19:25 UTC (rev 16741)
@@ -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 @@
 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\)'),



More information about the postgis-tickets mailing list