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 1kJHXk-0003Bs-Ta for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 14:39:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJHXi-0000SC-9k for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 14:39:18 +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 1kJHXi-0000S5-3E for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 14:39:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJHXe-0000Em-Rf for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 14:39:17 +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 08IEdA1K449145; Fri, 18 Sep 2020 10:39:11 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-hackers@lists.postgresql.org, pgbf@twiska.com Subject: XversionUpgrade tests broken by postfix operator removal MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <449143.1600439950.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 18 Sep 2020 10:39:10 -0400 Message-ID: <449144.1600439950@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Unsurprisingly, commit 1ed6b8956 has led to the buildfarm's cross-version upgrade tests no longer working, eg https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dtadarida&dt=3D20= 20-09-18%2013%3A06%3A52 Checking for reg* data types in user tables ok Checking for contrib/isn with bigint-passing mismatch ok Checking for user-defined postfix operators fatal Your installation contains user-defined postfix operators, which are not supported anymore. Consider dropping the postfix operators and replacing them with prefix operators or function calls. A list of user-defined postfix operators is in the file: postfix_ops.txt 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 !=3D- (bigint,NONE); drop operator #@%# (bigint,NONE); We could shorten this list a bit by changing create_operator.sql in the back branches --- most of these have no particular reason to be postfix rather than prefix operators. I would not want to remove them all, though, since that'd result in loss of test coverage for postfix operators in the back branches. regards, tom lane