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

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To:
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 14 - can't upgrade from a database using an aggregate with anyelement and anyarray
Date: 2021-05-22 15:20:17
Message-ID: 45750910-0ffc-8128-a72a-cf47989bed4c@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane schrieb am 22.05.2021 um 15:25:>> 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) while it used
>> to be (anyarray, anyelement).

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

Hmm, that means dropping all views and functions that use that aggregate as well.
Quite cumbersome :(

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2021-05-22 15:26:27 Re: The contents of the pg_timezone_names view bring some surprises
Previous Message Ron 2021-05-22 15:11:15 Re: pgbackrest - hiding the encryption password