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 1kJfZp-0006As-Sf for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Sep 2020 16:19:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJfZo-0000G5-Nk for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Sep 2020 16:19:04 +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 1kJfZo-0000Fy-8g for pgsql-hackers@lists.postgresql.org; Sat, 19 Sep 2020 16:19:04 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kJfZl-0002dT-MI for pgsql-hackers@lists.postgresql.org; Sat, 19 Sep 2020 16:19:03 +0000 Received: by mail-qv1-xf43.google.com with SMTP id b13so4871679qvl.2 for ; Sat, 19 Sep 2020 09:19:01 -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=D/ymTZMGIiRNXWPxg1X1PXTLKyIxbm95nOYciKGns4E=; b=UHDdO+OD8MilZpBOcJ6K37rBOCfh2detzBM1SWp6Bo+UdOcNuAgW2NnYKv5Lvsyr0r hqu79y1bw9Eq8C0t24qRYm2FhLfMsPEa/PuAze3HSgESIE2lazPUWNAjL28ebvbD9PJ2 W4z2zvOYcvJrWp+qYKlIG0LsGOTKKthPIHgijY58SQjNqGAyvm5WJxia8a8DiUCN+azF GyHeT6J4gMkIGCtXsdrF8wUUbZWZQ0K27euqmnYAuplyJKxRVHu61BP+HkotWYeFpm+i kLdPFUmHxwMTOnw7HgCgEkzwlU+vcl2dxw1Q8ZdqiluyP9uXqf+KAbdMYEtBxctjeqT9 lrpg== 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=D/ymTZMGIiRNXWPxg1X1PXTLKyIxbm95nOYciKGns4E=; b=GWlJfA2s4o/bnYqKMXbQkfWg3vPL9AczrM+gqurh8pBnnBDETRIFNg7FMqTUetkZ9e ylWVJTxi7rNp9pjArFjMHlXaAzgvJFXS8d2FPOBJCIlPmkSZ86ewg1/Zmc6od2443ODW QJwF5HPbrix8D9LLvyGyYOj+aO8lKAwEuhcS+mU6BaB52IO3d+07s17nbJ5laBNPtKny y+JugTfKCe7diHS3FYJtrS/fRCf9Kmk3Vwvd+5GuQFhLKypi71ORxvCl8wV948O4fxYR Vxu2Di70pe3lDNU/t+hfSB7ycdUg/Q06+ziVrDYNInRtuprIVKzXtb/Z89XsSgPosORt HQhg== X-Gm-Message-State: AOAM5301E4yktGvta3MfDgcpQm+3AwkuMxAFyS03rMq5BB/sMEZmea/8 fsuclhP7IiOPkUGTMC/1thlZ X-Google-Smtp-Source: ABdhPJxdm6seL/3nupTOKd80eYkMO7MoOXvaSSpLtKzx703mJPypsLqwUAB5ZV8RLdhvWuM1GMEz2Q== X-Received: by 2002:ad4:45a6:: with SMTP id y6mr38272179qvu.8.1600532340430; Sat, 19 Sep 2020 09:19:00 -0700 (PDT) Received: from ?IPv6:2600:1700:722:4630::43? ([2600:1700:722:4630::43]) by smtp.gmail.com with ESMTPSA id r24sm4623931qtm.70.2020.09.19.09.18.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Sep 2020 09:18:59 -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> <1ac0304a-c3b9-0ca1-871f-a85e161db5e3@2ndQuadrant.com> <541680.1600461869@sss.pgh.pa.us> <584630.1600466747@sss.pgh.pa.us> <16ee55f8-6a38-2f0d-a4e8-b2ab59be8146@2ndQuadrant.com> <686634.1600526634@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 H1faDKE2lm5a6QkRQ2JU6DK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X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <686634.1600526634@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/19/20 10:43 AM, Tom Lane wrote: > Andrew Dunstan writes: >> On 9/18/20 6:05 PM, Tom Lane wrote: >>> Done, you should be able to remove @#@ (NONE, bigint) from the >>> kill list. >> crake tests pg_upgrade back to 9.2, so I had to mangle those static >> repos for non-live branches like this: > Oh, hm. Now that you mention that, I see snapper is testing 9.3 > and 9.4 upgrades too. > > It seems like we have these non-kluge fixes available: > > 1. Backpatch 9ab5ed419 as far as 9.2. It'd be unusual for us to patch > out-of-support branches, but it's certainly not without precedent. > > 2. Give up testing these upgrade scenarios. Don't like this much; > even though these branches are out-of-support, they still seem like > credible upgrade scenarios in the field. > > 3. Put back the extra DROP in TestUpgradeXversion.pm. The main > complaint about this is we'd then have no test of pg_upgrade'ing > prefix operators, at least not in these older branches (there is > another such operator in v10 and later). That doesn't seem like > a huge deal really, since the same-version pg_upgrade test should > cover it pretty well. Still, it's annoying. > > 4. Undo the elimination of numeric_fac() in HEAD. I find this only > sort of not-a-kluge, but it's a reasonable alternative. > > In the last two cases we might as well revert 9ab5ed419. > > Personally I think #1 or #3 are the best answers, but I'm having > a hard time choosing between them. Here's how cross version upgrade testing works. It uses a cached version of the binaries and data directory. The cache is only refreshed if there's a buildfarm run on that branch. If not, the cached version will just sit there till kingdom come. So all this should normally need for the non-live branches is a one-off adjustment in the cached version of the regression database along the lines I have indicated. My cached versions of 9.2 and 9.3 are two years old. There are two things you need to do to enable fixing this as I suggested: * create the socket directory set in the postgresql.conf * set LD_LIBRARY_PATH to point to the lib directory Then after starting up musing pg_ctl you can do something like: bin/psql -h /tmp/buildfarm-xxxxxx -U buildfarm regression and run the updates. As I say this should be a one-off operation. Of course, if you rebuild the cached version then you would need to repeat the operation. If we think that's too onerous then we could backpatch these changes, presumably all the way back to 8.4 in case anyone wants to test back that far. But another alternative would be to have the buildfarm module run (on versions older than 9.5): drop operator @#@ (NONE, bigint); CREATE OPERATOR @#@ (     PROCEDURE = factorial,     RIGHTARG = bigint ); On reflection I think that's probably the simplest solution. It will avoid any surprises if the cached version is rebuilt, and at the same time preserve testing the prefix operator. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services