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 1o4jxf-0007pT-VN for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 14:07:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o4jxe-0003Nx-Qd for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jun 2022 14:07:02 +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 1o4jxe-0003No-Ht for pgsql-hackers@lists.postgresql.org; Fri, 24 Jun 2022 14:07:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4jxY-0005kP-45 for pgsql-hackers@lists.postgresql.org; Fri, 24 Jun 2022 14:07:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 25OE6r0d347234; Fri, 24 Jun 2022 10:06:53 -0400 From: Tom Lane To: Justin Pryzby cc: Andrey Borodin , Andrew Dunstan , pgsql-hackers@lists.postgresql.org, Bruce Momjian 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> <20220624133052.GD22452@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Fri, 24 Jun 2022 08:30:53 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <347232.1656079613.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 24 Jun 2022 10:06:53 -0400 Message-ID: <347233.1656079613@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > I realized that my latest patch would break upgrades from old servers, w= hich 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). proname is dangerous, because there's nothing stopping users from adding more functions with the same name. Just use a server-version-dependent list of regprocedure OIDs. regards, tom lane