]> granicus.if.org Git - postgis/commitdiff
upgrade fixes for ST_CountAgg
authorBborie Park <bkpark at ucdavis.edu>
Sun, 15 Dec 2013 20:44:03 +0000 (20:44 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Sun, 15 Dec 2013 20:44:03 +0000 (20:44 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12162 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in

index da95f5b3ea00c531f574269b56b56269c303cd3a..ee973e526bbae4fdb5090c5fef598450351823b8 100644 (file)
@@ -152,6 +152,18 @@ BEGIN
                        );
     END IF;
 
+    -- create agg_count type if it does not exist
+       IF NOT EXISTS(SELECT typname 
+               FROM pg_type 
+               WHERE typname = 'agg_count') THEN
+                       CREATE TYPE agg_count AS (
+                               count bigint,
+                               nband integer,
+                               exclude_nodata_value boolean,
+                               sample_percent double precision
+                       );
+    END IF;
+
 END$$; 
 
 -- make geometry cast ASSIGNMENT