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 1kJN2i-0001Ld-Fw for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:31:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJN2h-0000eS-Do for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2020 20:31:39 +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 1kJN2h-0000eK-6k for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:31:39 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kJN2d-00011D-PU for pgsql-hackers@lists.postgresql.org; Fri, 18 Sep 2020 20:31:38 +0000 Received: by mail-oi1-x243.google.com with SMTP id u126so8502875oif.13 for ; Fri, 18 Sep 2020 13:31:35 -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=vmiTlCE+IEwu2mbD2nuQ4zvVOZrOFpKPvUeuWcaxH28=; b=j5aYHC4PQzLzNwBpTfql2Zbv1p2+PPxHtsRlII2HN8t6UxT1z7H04x5DU2KBNvlARZ bVVidJEoMN1ftZ2JLt+rk6YNdUKv6jR4q5KK/xjm8RLxFMZ5sa1pDjkuMAB5Rw1keo/V LND5/l8E84AeME7YWO4mWSykXJfdEzrEXML2wHSVUHj/ntGODenUaptw/wj9HKvTluIG 3N6ArWDcRc/8Sjed8wwfZSJIwTBlpN3tNQoB6PPx2Ie9Bc/J0vIgcomDObqBJaTi1Lvg 0WJGzp9lbkIz4EWlkX0CxKQ4Xh11cImG8uchbPEw/JJzwRjAeLnwX/gZZKfMGlTjM/c7 FIUA== 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=vmiTlCE+IEwu2mbD2nuQ4zvVOZrOFpKPvUeuWcaxH28=; b=Tw4JsQbFCmteSkjwi/VRRK9DnqPBuAr+U5ObInAttyxXXOQJgaAgiZZhKfRHFnwY9D ogXTxowW3mqW6adxygOUM5ftfjcIPRmg1GIRsIE/QIrjgEi7KbYNa3FxIbKiPr+nvCv+ uya1jA1bY4ePhNZ6ZVnL9jtocsn2PWGv9Gq15IU0EU8A7xVU1D/zSpKohX6UBnDvdWXd RaSKDxvB6wvUVrDQK8ayvQh8rz65pIMatlnSZClnEzrldJSA0q/hvkiKfxMT4tGKdl7d JW8ZDEO/N6e3wymGhMY4TMOhVFbCN1fu0aTJ4iQO6t20bvoD6kdhB4JPzbvKSc2gwpx0 5uHA== X-Gm-Message-State: AOAM531mN6H5J4eg77UtbTnJY31bJ9gB+eu2VxnZdJYlLbfNeIncndV8 mcThYKNjadAUY+4xDjqt3to1 X-Google-Smtp-Source: ABdhPJyUbOXF+s5cTMx5Y85tK0JRfyg2uVSdIUEKzouXoC4nOYtNbl+yGr4GiZ99Cdc5T/uqOL69RQ== X-Received: by 2002:aca:c34d:: with SMTP id t74mr10072967oif.0.1600461095006; Fri, 18 Sep 2020 13:31:35 -0700 (PDT) Received: from ?IPv6:2600:1700:722:4630::43? ([2600:1700:722:4630::43]) by smtp.gmail.com with ESMTPSA id e19sm3126798ote.37.2020.09.18.13.31.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2020 13:31:34 -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> <3f62db16-29c0-4378-02ff-15677fbec2da@2ndQuadrant.com> <540786.1600460745@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: <1ac0304a-c3b9-0ca1-871f-a85e161db5e3@2ndQuadrant.com> Date: Fri, 18 Sep 2020 16:31:33 -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: <540786.1600460745@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 4:25 PM, Tom Lane wrote: > 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. > > Yeah, probably worth doing. It's a small enough change and it's only in the test suite. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services