Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqke1-0001Go-Jf for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jun 2021 22:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqke0-0000Vx-Ih for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jun 2021 22:56:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqke0-0000Vp-8x for pgsql-hackers@lists.postgresql.org; Tue, 08 Jun 2021 22:56:24 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lqkdx-00014v-SP for pgsql-hackers@lists.postgresql.org; Tue, 08 Jun 2021 22:56:23 +0000 Received: by mail-il1-x135.google.com with SMTP id i17so21923919ilj.11 for ; Tue, 08 Jun 2021 15:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SSqbsW4bVx5157EccHgBEL4n9RH9x1pckNyt6CVAXiY=; b=s6K93C7YOI3qPR3FQZsnI4d2Vc2MpFVRmRfHq8kgc5LcxBeR6DXwiQR8zgMpkO+r/m euZqzvzL1YH1Jl/xp+hLeAkkVpkru76FGrqof14D6OHoX1ZtKoL47mDHDHyZP7F+IxFw yLmOROY8Ohzwqf+EfYKleiK8rBDPuCaVj7JDsDvPDYKUQZ2JY/O8LU45A2LycYf22ubk Gg+c1gwyoS9esAoQy+tYikwNvSIDmiCSTq5dYUFie7w/W2PEyOGCRyT5wOvBtMA7QQPR c1K3CWMK8eDgM9fxCI93uQHyjycfNTNeq/0tpd1GojOlxdtZw+Ntiidq8TaJma9Cej/d /Ndw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SSqbsW4bVx5157EccHgBEL4n9RH9x1pckNyt6CVAXiY=; b=hGZabQz7dnhzyVrsmA4gFgbFZOTHMyQUvooVikssDlho1migMh4dTBP/p1hT1mNV5Y qecV/rfssH+Ut18BuZO2F1jsl60rN+1X9om4iojXUpOrNZFTG57PQav68LyXCwiI4SyR aX1wWpiqD255LT9QyotWYbO8QUYB3eB5Wve+FVEOp6FiSkBmgswvyN4ttVQnORiO1QFR R8A24Ckor/xz0xik/v/wnVpZM/jgesizS0N5dcfSP2Adeob7/xLQsQCET/N79V4/xmAe zp3PnysbLy85i3J6uZKdeLhDeXpXa9taCO/sPs6nhF46rlCMg8/TgRsis0ttErJ39zSC e4iw== X-Gm-Message-State: AOAM532NSj06USQKDaPxhmUHL7KqfY1PNbKhbeYC6/UXj8yixCzNAmug s+qbr+BZJvXPb60oCsDfgk7OBXdCLOH6Rw== X-Google-Smtp-Source: ABdhPJwZ+wlgBGfT1Ky9MlbBTDy/LVglkSxIWvMCBVB76w/N9X0Ww+oru1RqztssFAN1UO3CJo/a3g== X-Received: by 2002:a05:6e02:933:: with SMTP id o19mr14159297ilt.101.1623192979797; Tue, 08 Jun 2021 15:56:19 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id i13sm611750ilr.16.2021.06.08.15.56.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jun 2021 15:56:19 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 42D98800C6F; Tue, 8 Jun 2021 17:56:18 -0500 (CDT) Date: Tue, 8 Jun 2021 17:56:18 -0500 From: Justin Pryzby To: Bruce Momjian Cc: pgsql-hackers@lists.postgresql.org Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests (v14 release notes) Message-ID: <20210608225618.GR16435@telsasoft.com> References: <1401824.1604537031@sss.pgh.pa.us> <20210520232922.GG3676@telsasoft.com> <3849235.1621553710@sss.pgh.pa.us> <20210525161458.GZ3676@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210525161458.GZ3676@telsasoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk @Bruce: Would you add something about this to the release notes before beta2? I added it as an OpenItem. On Tue, May 25, 2021 at 11:14:58AM -0500, Justin Pryzby wrote: > On Thu, May 20, 2021 at 07:35:10PM -0400, Tom Lane wrote: > > Justin Pryzby writes: > > > On Wed, Nov 04, 2020 at 07:43:51PM -0500, Tom Lane wrote: > > >> 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. > > > > > But I think this should be called out as an incompatible change in the release > > > notes. > > > > If it was not, yes it should be. > > @Bruce, I propose: > > Some system functions are changed to accept "anycompatiblearray" arguments. > This causes failures when restoring a database backup or running pg_restore if > there were aggregate functions defined using those functions with their > original argument types. > > 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.