[postgis-tickets] r16739 - Evaluate unpackage code lazily
Sandro Santilli
strk at kbt.io
Tue Sep 11 02:19:15 PDT 2018
Author: strk
Date: 2018-09-11 02:19:15 -0700 (Tue, 11 Sep 2018)
New Revision: 16739
Modified:
trunk/extensions/postgis/unpackage_raster_if_needed.sql
Log:
Evaluate unpackage code lazily
Avoids having to find all mentioned object at plan time
Modified: trunk/extensions/postgis/unpackage_raster_if_needed.sql
===================================================================
--- trunk/extensions/postgis/unpackage_raster_if_needed.sql 2018-09-11 09:19:09 UTC (rev 16738)
+++ trunk/extensions/postgis/unpackage_raster_if_needed.sql 2018-09-11 09:19:15 UTC (rev 16739)
@@ -8,7 +8,11 @@
and t.typname = 'raster'
) THEN
+ RAISE WARNING 'unpackaging raster';
+
+ EXECUTE $unpackage$
-- UNPACKAGE_CODE --
+ $unpackage$;
RAISE WARNING 'PostGIS Raster functionality have been unpackaged'
USING HINT = 'type `CREATE EXTENSION postgis_raster FROM unpackaged` to re-package';
More information about the postgis-tickets
mailing list