Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray - Mailing list pgsql-general

From Tom Lane
Subject Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray
Date
Msg-id 229062.1621689902@sss.pgh.pa.us
Whole thread Raw
In response to PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray  (Thomas Kellerer <shammat@gmx.net>)
Responses Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray  (Thomas Kellerer <shammat@gmx.net>)
List pgsql-general
Thomas Kellerer <shammat@gmx.net> writes:
> this aggregate can be created without problems on PG 13 and before:

>    CREATE AGGREGATE array_accum(anyelement) (
>        SFUNC = array_append,
>        STYPE = anyarray,
>        INITCOND = '{}'
>    );

> However, that fails with PG 14beta1 because array_append's parameter are now (anycompatiblearray, anycompatible)
whileit used to be (anyarray, anyelement). 

Yeah, you'll probably need to drop that aggregate and then recreate it
after upgrading.

            regards, tom lane



pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray
Next
From: Ron
Date:
Subject: Re: Fwd: Proposed Chinese Translation of Community Code of Conduct