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 1o4jOr-0006cb-Q9 for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 13:31:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4jOp-0008VG-RB for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 13:31:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4jOp-0008V7-Cz for pgsql-hackers@lists.postgresql.org; Fri, 24 Jun 2022 13:31:03 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o4jOh-0005PF-R7 for pgsql-hackers@lists.postgresql.org; Fri, 24 Jun 2022 13:31:01 +0000 Received: by mail-io1-xd34.google.com with SMTP id h85so2693048iof.4 for ; Fri, 24 Jun 2022 06:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QraC/EfQTvMGkyUcZ6R1ylZL2jfOTdkVjkuYAF9EKOc=; b=FsVYurZC4R8jgrVvVxdYlu+d/1UfwqwUGLsNjeJ8C+A4zq4cP5I3fckOiCb/UG7sGS jMcytDi6oFpTDqA0Xm8REHdh6L4m4Aab8bBnca1+xKXV8tqW5Wx9dRlO2aiagPpItpap otwgiSvtdwDBTctfjjGRKvjVif8uMPMHRTxdxpDGOoisV5oFL7nGImWPwE+oO8wQPHSx zPOLwKlWdWSV1s1mZM+yYAAel6V17bMKh/CS4Dp1t76VCxqLkm1d8KxDy7lLE10yRaRM B51WdXvntekov5RMTsiu5AOwKGbA4S5CaK8BYNA0KbfVjMr5UxsoJ9MoDrUrs9mE8hGM Vjog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QraC/EfQTvMGkyUcZ6R1ylZL2jfOTdkVjkuYAF9EKOc=; b=4n9NC3efUwshj844zHEgh4kY4BTSK83/mRBKVLHuOfOrXazaJrpHUxKUmQy1FshlQY wD9u+cy1I9cnFWahd//9hjbIKItbFhHVPE6LnOzhgqESZoTzmaTnUQezTQHrbCOv7w0y yESO1P173jts5t9g+3GkGKwFqgjMCzAKVZKphmK1E7XJAh0j/9CbcmkifwDAANyafDER 58kkhL5hBswB2U0fHLVca6tWDm7xVe8gfu0rKn/RuV7kb7PJgQFBHsdUekEADtOUkD5E qamGGMqf/X2h0Z7YiQLa5zONeFN+Y014aSaJVlWkDC7Hn1Lrm6/e62jOuphR/pKBXqxq ZCjQ== X-Gm-Message-State: AJIora8Q4IAa0I/Zi7dSGSmD3Gd4xh6Dpoy1sidfxStJyZcbX6dKGDEM FgB6oI2BxN6dbOQKbnZCwykoTCBm1nqYkQ== X-Google-Smtp-Source: AGRyM1uXqfRNGoPkbarb5X67daF0hvvqr2qnur0iGEmkTaNouOXVmHSQ17E6CAgpbSXKOfklsTHU9Q== X-Received: by 2002:a05:6638:12c4:b0:339:d33f:ff03 with SMTP id v4-20020a05663812c400b00339d33fff03mr8553808jas.220.1656077454457; Fri, 24 Jun 2022 06:30:54 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j25-20020a02a699000000b00339c33df66bsm1042078jam.118.2022.06.24.06.30.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2022 06:30:54 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 294BB8009F4; Fri, 24 Jun 2022 08:30:53 -0500 (CDT) Date: Fri, 24 Jun 2022 08:30:53 -0500 From: Justin Pryzby To: Andrey Borodin Cc: Tom Lane , Andrew Dunstan , pgsql-hackers@lists.postgresql.org, Bruce Momjian Subject: Re: array_cat anycompatible change is breaking xversion upgrade tests Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 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