Drop aggregate to be defined

Otherwise future versions will fail to recreate the aggregate
This commit is contained in:
Javier Goizueta 2016-04-29 08:46:01 +02:00
parent 8f1435c049
commit b5427c65c8

View File

@ -591,7 +591,7 @@ $$
$$
LANGUAGE SQL IMMUTABLE;
-- Tell Postgres how to use our aggregate
DROP AGGREGATE IF EXISTS _cdb_mode(anyelement);
CREATE AGGREGATE _cdb_mode(anyelement) (
SFUNC=array_append,
STYPE=anyarray,