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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray
Дата
Msg-id 229062.1621689902@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray  (Thomas Kellerer <shammat@gmx.net>)
Ответы Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray  (Thomas Kellerer <shammat@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray
Следующее
От: Ron
Дата:
Сообщение: Re: Fwd: Proposed Chinese Translation of Community Code of Conduct