pg_upgrade (12->14) fails on aggregate - Mailing list pgsql-bugs

From Petr Vejsada
Subject pg_upgrade (12->14) fails on aggregate
Date
Msg-id 3383880.QJadu78ljV@vejsadalnx
Whole thread Raw
Responses Re: pg_upgrade (12->14) fails on aggregate
List pgsql-bugs
Hi Team,

we experienced pg_upgrade failing when attempted to upgrade from 12.10 to 14.2 
(on AWS RDS)

We had this aggregate:

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

Syntax in version 14 is changed (we didn't try to run version 13)

We solved it (in our case) dropping the aggregate before upgrade and re-create 
in using new syntax in V14:

CREATE AGGREGATE public.array_accum(anycompatible) ( SFUNC = array_append, 
STYPE = anycompatiblearray, INITCOND = '{}');

but pg_upgrade shouldn't fail on this.

I hope it can help to improve pg_upgrade process.

Thanks.

--
Best
Petr





pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Implicitly created operator family not listed by pg_event_trigger_ddl_commands
Next
From: "David G. Johnston"
Date:
Subject: Re: pg_upgrade (12->14) fails on aggregate