From: Justin Pryzby <pryzby@telsasoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@lists.postgresql.org, Bruce Momjian <bruce@momjian.us>
Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests
Date: Thu, 20 May 2021 18:29:22 -0500
Message-ID: <20210520232922.GG3676@telsasoft.com> (raw)
In-Reply-To: <1401824.1604537031@sss.pgh.pa.us>
References: <1401824.1604537031@sss.pgh.pa.us>
On Wed, Nov 04, 2020 at 07:43:51PM -0500, Tom Lane wrote:
> crake is showing xversion upgrade failures since 9e38c2bb50:
>
> pg_restore: error: could not execute query: ERROR: function array_cat(anyarray, anyarray) does not exist
> Command was: CREATE AGGREGATE "public"."array_cat_accum"("anyarray") (
> SFUNC = "array_cat",
> STYPE = "anyarray",
> INITCOND = '{}'
> );
>
> As was discussed in the thread leading up to that commit, modifying the
> signature of array_cat and friends could break user-defined operators
> and aggregates based on those functions. It seems to me that the
> usability gain from this change is worth that cost, but it is causing
> an issue for xversion tests.
I upgraded an internal DB to v14b1, but it took several tries, since there were
errors during pg_restore regarding aggregates using polymorphic functions
anyarray, which are now anycompatiblearray.
I succeeded in upgrading after dropping our aggregates.
I have a backup from the v13 DB, and it restores okay on v13.
However it fails with the same errors when restoring into v14.
I think this was all known, so I'm just adding a data point.
It's be easy enough to replace our "anyarrays" with "anycompatiblearrays".
But I think this should be called out as an incompatible change in the release
notes.
pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist
Command was: CREATE AGGREGATE public.array_accum(anyelement) (
SFUNC = array_append,
STYPE = anyarray,
INITCOND = '{}',
PARALLEL = safe
);
pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist
Command was: CREATE AGGREGATE public.pdp_context_count(anyelement) (
SFUNC = array_append,
STYPE = anyarray,
INITCOND = '{}',
FINALFUNC = public._final_pdp_context_count,
PARALLEL = safe
);
pg_restore: error: could not execute query: ERROR: function array_append(anyarray, anyelement) does not exist
Command was: CREATE AGGREGATE public.ts_mode(anyelement) (
SFUNC = array_append,
STYPE = anyarray,
INITCOND = '{}',
FINALFUNC = public._final_mode
);
--
Justin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: pryzby@telsasoft.com, tgl@sss.pgh.pa.us, andrew@dunslane.net, bruce@momjian.us
Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests
In-Reply-To: <20210520232922.GG3676@telsasoft.com>
References: <1401824.1604537031@sss.pgh.pa.us> <20210520232922.GG3676@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox