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 1kJMx4-00016s-EZ for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:25:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJMx3-0006ql-AI for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:25:49 +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 1kJMx3-0006qe-3e for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:25:49 +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 1kJMx1-0000xU-43 for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:25:48 +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 08IKPjcC540787; Fri, 18 Sep 2020 16:25:45 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-hackers@lists.postgresql.org, pgbf@twiska.com Subject: Re: XversionUpgrade tests broken by postfix operator removal In-reply-to: <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com> References: <449144.1600439950@sss.pgh.pa.us> <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Fri, 18 Sep 2020 16:17:37 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <540785.1600460745.1@sss.pgh.pa.us> Date: Fri, 18 Sep 2020 16:25:45 -0400 Message-ID: <540786.1600460745@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 9/18/20 10:39 AM, Tom Lane wrote: >> I intentionally let that happen, figuring that it'd be good to get some >> buildfarm cycles on the new code in pg_upgrade that does this check. >> But now we have to think about updating the test. I think the best >> bet is just to add some DROP OPERATOR commands to the existing >> cleanup logic in TestUpgradeXversion.pm. It looks like this would >> do the trick: >> >> drop operator #@# (bigint,NONE); >> drop operator #%# (bigint,NONE); >> drop operator !=- (bigint,NONE); >> drop operator #@%# (bigint,NONE); > Almost. I had to remove one more operator. Hmm, that's not a postfix operator ... oh, it's because it depends on the numeric_fac function alias which we also removed. We could eliminate the need to drop it if we changed the definition to use "factorial" instead of "numeric_fac" in all the back branches. Not sure if that's a better solution or not. Might be worth doing, because in the older branches that's the only user-defined prefix operator, so we're missing some pg_upgrade test coverage if we just drop it. regards, tom lane