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 1llZi2-0001ss-HG for pgsql-hackers@arkaria.postgresql.org; Tue, 25 May 2021 16:15:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1llZi1-0001Gh-Gm for pgsql-hackers@arkaria.postgresql.org; Tue, 25 May 2021 16:15:09 +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 1llZi1-0001GY-57 for pgsql-hackers@lists.postgresql.org; Tue, 25 May 2021 16:15:09 +0000 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llZhy-00064b-M3 for pgsql-hackers@lists.postgresql.org; Tue, 25 May 2021 16:15:08 +0000 Received: by mail-io1-xd29.google.com with SMTP id b25so13820802iot.5 for ; Tue, 25 May 2021 09:15:06 -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=hnSiBJyjNFFy6NFGQWHjx4u+Rx/ZNrhWmzaQUSSPp0o=; b=YVWWriUPjq/PbsiajOx3k+fAoVu1hTp5+YIFH8qIL4gutufmuPgbKMK/SwW/dF7jFr WdRAQjF5+jLjaRb3qE41Sq5+Z7zb92RxYvuCHoEhPm2mpPNooALMCym8AHZgVwAXJqpg kAkcMIcpZyQvYrWbsby9JrvJlF8GD1Gj8i8JoaHHEbxYeVdaf27Wbhyzl2sX2tEA5Qyi r2eyNOFKSOGBb+8Tw9HYUkivXxWA8PGPZIYgWGOLNG0Xhi/w2r8IUzd1/iUUKuuZTk6m CEYEzufnBbyv4DyNkkIuffAK0Fbne4MWzp3aThNTj7uytoBDBE1F0k2R/pDMx35Xqjh+ px2w== 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=hnSiBJyjNFFy6NFGQWHjx4u+Rx/ZNrhWmzaQUSSPp0o=; b=qia6D7qGWBwDYXrMpSTo94Kh1Y3Hq+Uk+WwmVeMptjcZrhEoybujHmR2ZXBL20eRGK A6MnBzWRRG7LZMdChkRxl4U3Uw3JhsIyUXRFhgHr1tHk2HTCArg6SVzJYxDhetRzf3YA 2ONUxh2GdRa3T5Mz6hn6MSnDAidJ5d6o8iC6aq3wHELuab1xIS/TKMb4StCLhCNGm7PC sNF+wePOevIsMm+8ukeqD05H6TJ7TptNika7ZcbeQDfU7PF/Gogi5igvb3p3ONYaAoLR prYyg18wLUJjiyz2ijJADCvyc6jlycjuzEGCMPUFWBy6Aj0ogwjbDK/qkP03MdCC+skN 7Spw== X-Gm-Message-State: AOAM531k5/m3eYn7sHggb2gOlyUj2UQ6RbBIpuamoEPm+jDlpoTmd1JK 1pEgu5Cn6HAPiz6dbrc5K9pzyw== X-Google-Smtp-Source: ABdhPJxqcRPtAI2VVrWriUd5Ytyy+xaitk6NUnJHjhk+LVcjTLt1sKHxQLkwn3i1g5XaGoaKM+QukA== X-Received: by 2002:a02:7a5b:: with SMTP id z27mr31005355jad.118.1621959299962; Tue, 25 May 2021 09:14:59 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id n13sm10487893iob.7.2021.05.25.09.14.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 May 2021 09:14:59 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 572F5801407; Tue, 25 May 2021 11:14:58 -0500 (CDT) Date: Tue, 25 May 2021 11:14:58 -0500 From: Justin Pryzby To: Tom Lane Cc: Andrew Dunstan , pgsql-hackers@lists.postgresql.org, Bruce Momjian Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests Message-ID: <20210525161458.GZ3676@telsasoft.com> References: <1401824.1604537031@sss.pgh.pa.us> <20210520232922.GG3676@telsasoft.com> <3849235.1621553710@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3849235.1621553710@sss.pgh.pa.us> 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 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. (Re-defining the function before upgrading is possible when upgrading from v13, only). -- Justin