From: Justin Pryzby <pryzby@telsasoft.com>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: 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: Fri, 24 Jun 2022 08:30:53 -0500
Message-ID: <20220624133052.GD22452@telsasoft.com> (raw)
In-Reply-To: <CB500650-3F3C-45A5-A06C-96621364AF7E@yandex-team.ru>
References: <1401824.1604537031@sss.pgh.pa.us>
<20210520232922.GG3676@telsasoft.com>
<3849235.1621553710@sss.pgh.pa.us>
<20210525161458.GZ3676@telsasoft.com>
<CB500650-3F3C-45A5-A06C-96621364AF7E@yandex-team.ru>
On Fri, Jun 24, 2022 at 04:09:46PM +0500, Andrey Borodin wrote:
> Hi everyone!
>
> Sorry for bumping old thread.
Please find this newer thread+patch here ;)
https://www.postgresql.org/message-id/20220614230949.GX29853@telsasoft.com> On 25 May 2021, at 21:14, Justin Pryzby <pryzby@telsasoft.com> wrote:
> >
> > Such aggregate functions should be dropped before upgrade/restore and then
> > re-created afterwards using the "anycompatible" functions. The affected
> > functions are: array_append, array_prepend, array_cat, array_position,
> > array_positions, array_remove, array_replace, and width_bucket.
>
> We've just stumbled upon the problem in our service. Would it be backpatchable to add this check to pg_upgrade?
I guess you mean to backpatch to v14 for people upgrading from v13.
I realized that my latest patch would break upgrades from old servers, which do
not have array_position/s nor width_bucket, so ::reprocedure would fail. Maybe
Andrey's way is better (checking proname rather than its OID).
--
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, x4mmm@yandex-team.ru, 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: <20220624133052.GD22452@telsasoft.com>
References: <1401824.1604537031@sss.pgh.pa.us> <20210520232922.GG3676@telsasoft.com> <3849235.1621553710@sss.pgh.pa.us> <20210525161458.GZ3676@telsasoft.com> <CB500650-3F3C-45A5-A06C-96621364AF7E@yandex-team.ru> <20220624133052.GD22452@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