[postgis-tickets] r15934 - Do not suggest to uninstall postgis when already found

Sandro Santilli strk at kbt.io
Sun Oct 8 11:20:00 PDT 2017


Author: strk
Date: 2017-10-08 11:20:00 -0700 (Sun, 08 Oct 2017)
New Revision: 15934

Modified:
   trunk/postgis/postgis.sql.in
Log:
Do not suggest to uninstall postgis when already found

The user might want to upgrade it or package it instead...

Modified: trunk/postgis/postgis.sql.in
===================================================================
--- trunk/postgis/postgis.sql.in	2017-10-07 21:52:16 UTC (rev 15933)
+++ trunk/postgis/postgis.sql.in	2017-10-08 18:20:00 UTC (rev 15934)
@@ -35,7 +35,7 @@
     WHERE p.proname = 'postgis_version'
     AND p.pronamespace = n.oid
   LOOP
-    RAISE EXCEPTION 'PostGIS is already installed in schema ''%'', uninstall it first', rec.nspname;
+    RAISE EXCEPTION 'PostGIS is already installed in schema ''%''', rec.nspname;
   END LOOP;
 END
 $$ LANGUAGE 'plpgsql';
@@ -1290,15 +1290,15 @@
 	RETURNS float8
 	AS 'MODULE_PATHNAME', 'LWGEOM_azimuth'
 	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-	
+
 -- Availability: 2.5.0
 CREATE OR REPLACE FUNCTION ST_Angle(pt1 geometry, pt2 geometry, pt3 geometry, pt4 geometry default 'POINT EMPTY'::geometry)
 	RETURNS float8
 	AS 'MODULE_PATHNAME', 'LWGEOM_angle'
 	LANGUAGE 'c' IMMUTABLE STRICT;
 
-	 
-	 
+
+
 ------------------------------------------------------------------------
 -- MISC
 ------------------------------------------------------------------------



More information about the postgis-tickets mailing list