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 1kJMpL-0000rH-08 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:17:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJMpJ-0007dd-33 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:17:49 +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 1kJMpI-0007dW-PT for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:17:48 +0000 Received: from mail-oo1-xc42.google.com ([2607:f8b0:4864:20::c42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kJMpB-0003FD-53 for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:17:48 +0000 Received: by mail-oo1-xc42.google.com with SMTP id h9so1737304ooo.10 for ; Fri, 18 Sep 2020 13:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=IbRdo6B41rm3bdzLquRHPAXXhIc8RRI2IjYH0Rw1320=; b=FRGWNd0jQdvWEOKpHAfa9rbZCEgJDVNXp89DLO+3YGQvz9ICHxHJNhoQcNdJQaeNb8 9Jd4WTfNyHI5IIW/7HsgwJoRCGc4wzIq5aKXx3L5m4q4AVeTr4CSd6KNZyYJQKo7k/vJ 5b8Kfnlcj32vvIWPEfN1mRiZ2uM6WYjlW/16JgxfIRqisj8C3zuwq3FWRxFD5icc66qh MPyPuPAIrG164Puv0knYzxVct/FPNIDcAeW53dk8I83NvQrEqxG/Z/fuLs9AuK8k/As7 mwuNpTL6gt6AnD16Qi1g2QhptyEw0bZu77rz03EqX7aXoquqT3fCOSmphL6L6bXVUkXM KC7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=IbRdo6B41rm3bdzLquRHPAXXhIc8RRI2IjYH0Rw1320=; b=fUldNrzFN4Noe2meILScXIc966GEN3d8xW0c8Kn40jYT5S3gHE1QFjLngQ2gmmo7h/ cyt+WnIdihSceuC1Lt2iQ64cvBBc/uc0EFnxxF19R0w1rm8rIjFgr0ISVYtRgdGUDS6q rOKG5rSRJBugzjjbZ0RI1Ci/jHrJHfJP0ZE2tvpog5VNq4eRggv7DUj5tIz1COfegf8Z ltEEwyKLrLeKGP+rLYQjIyAz7c4ZPqPimu6SDC28/K+5aOrr4pDK6nqcNa2gko7yk8ui uIxlMAmmSuOMZWBIQ7M5jqWAQLHlJ6vwSX8guDKAMzyHuL2PINkYTJ8Rv/HxSruHofIb 5HtQ== X-Gm-Message-State: AOAM533UeGmOsN1HAcQpyNA73UP6UIjPr93o8mpW7OC1DkniaRhMSDFE GLywQqoBbcNtfFunWw3wrbWh4mwKmAFeXtc= X-Google-Smtp-Source: ABdhPJyigW6C6K0Q6p+9WoZYrkENadKK92LgX5M+7fcFWhkhreb/Y3w4pCiu1uKD/R7BpPH3LWfNlA== X-Received: by 2002:a4a:e592:: with SMTP id o18mr19264187oov.28.1600460259154; Fri, 18 Sep 2020 13:17:39 -0700 (PDT) Received: from ?IPv6:2600:1700:722:4630::43? ([2600:1700:722:4630::43]) by smtp.gmail.com with ESMTPSA id t9sm3835153ood.30.2020.09.18.13.17.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2020 13:17:38 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: XversionUpgrade tests broken by postfix operator removal To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, pgbf@twiska.com References: <449144.1600439950@sss.pgh.pa.us> Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= mQENBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAG0L0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+iQFY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ /DuBAhkBBQJd1pSYBQkSzqMsAAoJEJn6f8tZ/DuBJmEIAIVFBIC3qGqh+YTPVTkfowwxpHz0 tZSPjZ6GS/5y62kgoZrZOVXw+Rg2ceuMM3a+In/RRjTx4bembgYqRKgzXlDfiNBJeq5ioVuN H1faDKE2lm5a6QkRQ2JU6DKf60fqSJGP5LisCUr1V0wz6EnlO31ArrKtXCNB+yk0KDAS6o6I Ql4pkXpr+vq4iilwJmiJOqTBam0LmQE7ulYCCYU8Z6MkpiSl+dO7QSramcGyxauQRI3a7gcq dpo8Vrv3gFTQDeMYxk7cqZp08pIVH5XR0+LgBz4X84f59rA/VAKlC/r6CyEQk59rvDLxCMyP 2buoj51Z25N3MVghRDGcsU6mT7e5AQ0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oK Waqf+wmW4tpDe/VVcxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7 llV0xSSoFiieQBsrGvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8 BoVrRFcdzlIY/NFNhFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C 4R+M6w7o2PLGOjdZ+kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaY L++LAEOqrlvm2TvqQqZRtnEAEQEAAYkBJQQYAQIADwIbDAUCXdaUtAUJEs6jVQAKCRCZ+n/L Wfw7gQi5B/9sHbmRloZNCWWwZGm+O9iG/JGQxS0WWa4GaZqzqSTWOft2/gO0Bgag89r1djq4 PFgSZtzHvKQpqYz/7HkPrWh1jpcS83i/uYY1uyHXUUtpdEmn4buNObEtD0YNaJkGdhASsECq 6akw+u7WJYmAHs/SpR6ok6HqLw7JHDVc2h5dViLfTk0qrgDa7sq/LVMoJje5Ct/Ku3YaWAV6 YSmzoPP5BmPVFqP11OMQkCqurIu9vTLXKFWX623vCmqRDHJ6e5GCDHbH8USU+4wJBfPymZkd cA7NGm/mmWeJiWBFIDyjzYxrjku8ty9TZJVsaRXnS+OFQzXz9Eu2wTpKdHij46uY Message-ID: <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com> Date: Fri, 18 Sep 2020 16:17:37 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <449144.1600439950@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/18/20 10:39 AM, Tom Lane wrote: > 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=tadarida&dt=2020-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 !=- (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. > > Almost. I had to remove one more operator. Here's the hot fix: I have been working in recent days towards a release - this will hurry it up. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services