From: Bborie Park Date: Sun, 15 Dec 2013 20:44:03 +0000 (+0000) Subject: upgrade fixes for ST_CountAgg X-Git-Tag: 2.2.0rc1~1280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=751f5f4fb2b45f30afcf24128da7669b73fccbf4;p=postgis upgrade fixes for ST_CountAgg git-svn-id: http://svn.osgeo.org/postgis/trunk@12162 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in index da95f5b3e..ee973e526 100644 --- a/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in +++ b/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in @@ -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