]> granicus.if.org Git - postgis/commitdiff
Changed the datatype for "count" from integer to bigint. This should allow the ...
authorBborie Park <bkpark at ucdavis.edu>
Thu, 26 May 2011 15:43:26 +0000 (15:43 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Thu, 26 May 2011 15:43:26 +0000 (15:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7255 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_pg/rtpostgis.sql.in.c

index 19bf95225a90e9174b82337ecffc4469b648c362..93d888f7fb460488200420d12c5959ab15c46ed5 100644 (file)
@@ -262,7 +262,7 @@ CREATE OR REPLACE FUNCTION st_band(rast raster)
 -- ST_SummaryStats and ST_ApproxSummaryStats
 -----------------------------------------------------------------------
 CREATE TYPE summarystats AS (
-       count integer,
+       count bigint,
        sum double precision,
        mean double precision,
        stddev double precision,
@@ -461,93 +461,93 @@ CREATE OR REPLACE FUNCTION st_approxsummarystats(rastertable text, rastercolumn
 -----------------------------------------------------------------------
 -- ST_Count and ST_ApproxCount
 -----------------------------------------------------------------------
-CREATE OR REPLACE FUNCTION st_count(rast raster, nband int, hasnodata boolean, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rast raster, nband int, hasnodata boolean, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rast raster, nband int, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rast raster, nband int, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, TRUE, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rast raster, hasnodata boolean, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rast raster, hasnodata boolean, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, 1, $2, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rast raster, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rast raster, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, 1, TRUE, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rast raster, nband int, hasnodata boolean, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rast raster, nband int, hasnodata boolean, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, $4) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rast raster, nband int, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rast raster, nband int, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, TRUE, $3) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rast raster, hasnodata boolean, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rast raster, hasnodata boolean, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, 1, $2, $3) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rast raster, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rast raster, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, 1, TRUE, $2) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rast raster, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rast raster, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, 1, TRUE, 0.1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, nband int, hasnodata boolean, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, nband int, hasnodata boolean, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, $4, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, nband int, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, nband int, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, TRUE, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, hasnodata boolean, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, hasnodata boolean, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, 1, $3, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_count(rastertable text, rastercolumn text, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, 1, TRUE, 1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, nband int, hasnodata boolean, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, nband int, hasnodata boolean, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, $4, $5) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, nband int, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, nband int, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, $3, TRUE, $4) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, hasnodata boolean, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, hasnodata boolean, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, 1, $3, $4) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, sample_percent double precision, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, sample_percent double precision, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, 1, TRUE, $3) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;
 
-CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, OUT count integer)
-       RETURNS integer
+CREATE OR REPLACE FUNCTION st_approxcount(rastertable text, rastercolumn text, OUT count bigint)
+       RETURNS bigint
        AS $$ SELECT count FROM _st_summarystats($1, $2, 1, TRUE, 0.1) $$
        LANGUAGE 'SQL' IMMUTABLE STRICT;