Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT9pQ-0004w2-OJ for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 18:49:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT9oP-0003Im-Rc for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 18:48:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT9oP-0003IY-CO for pgsql-hackers@lists.postgresql.org; Tue, 21 May 2019 18:48:33 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hT9oM-0007FP-4P for pgsql-hackers@postgresql.org; Tue, 21 May 2019 18:48:31 +0000 Received: by mail-oi1-x243.google.com with SMTP id y10so13610042oia.8 for ; Tue, 21 May 2019 11:48:29 -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:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=VNrSYGIszCU/aiGHLIIRHfYLWpMN0+zztiRDH1N9XGQ=; b=RDheNw9/CQABHXV27jtAsNudSpW8vZ66DKK16rRCa1nNWn/aYq7WLpckycwTzzFJyt jfoAjjGKnRPtCSU1kG0ywFyTBaeDU7KmU33AotPuNf1xEe6Eb+bpl0xgP6qdI15fEdQJ zn7AA0t8kcmwYNHvaQE4Tw8C/GVuKCSEX6qCxcve01uTZ4S6ZnRCToNXFJqpZqsfq7LJ Jasx7Z+WoasU8Yk9P41hm2Yygxi9j31zB14n7+kVGN2QnsepVmWuuDqf26vJe8zHR83r +pOVGCgLca3B0hsTzFWMnZh9/rA1zxPT1rg60JR8khdqev2136HUY1/F9bUdDgPkwArH 0d+g== 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:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=VNrSYGIszCU/aiGHLIIRHfYLWpMN0+zztiRDH1N9XGQ=; b=A1f0I+Fu2vWlQNrVHybzD6cGLEoJ+z6NEJ4qXi5Zbfwzqs9b5jjqRJSPuDqq3ziHjD 5Q0FoKRhN4ddrISaunAWl2v3LBjtHWosklhWN4K0tpoEE6lt+ghdVLdPxIsJj6VxocLS 1oc2sGSoXS9aiG+iNHUjf0G0gSmY0+iOG3adginstpM6mL9o6I2Bs90dZXmbW0oqVxJL 8Korfzs0iXxWEs+AZXrs3ZRvsROtZBgmLOyycgolDhtUNdPH0B3SdmbbsSWoLNukJ/gi MCVNX5X0bD4jcdY6zkPF3joBMRhKEnndjAChxCURHRn3L7VRxx9YmA7MqhavVG7LZ436 EuWg== X-Gm-Message-State: APjAAAVXazZveh6NW+/YTPxoAqDCc8apPF2cbFyFsgXtn+s3F0+lNpHL BC5SmLObDayjMvv8Mbwfv4hCm4Sf9dbpB+VBiviwGEpE00KSQNiqZaLiadnYTOfKFO9K65CID8X lnqyEXNRLhhmSLmHIBNViH9DVC3N9Napxp5WumFlJRIJB/+MiR4z8fPCNGZIDqaZx7ixghzgdVE ObqB6StqYdAsGNwR8= X-Google-Smtp-Source: APXvYqzxOx01YlhXLtxHeqn3GMsGo+Kto6eK3LCmibuOa/0HjEcTWozfaArT9j23kOQR5rh2ZRzPJQ== X-Received: by 2002:aca:de44:: with SMTP id v65mr4328842oig.135.1558464509007; Tue, 21 May 2019 11:48:29 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id y3sm7389985oto.58.2019.05.21.11.48.28 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 11:48:28 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: Teach pg_upgrade test to honor NO_TEMP_INSTALL To: Andres Freund , Tom Lane Cc: PostgreSQL-development References: <5506b8fa-7dad-8483-053c-7ca7ef04f01a@2ndQuadrant.com> <20190521015840.cztw2qxthh7xuutk@alap3.anarazel.de> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNL0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+wsCY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUJDyV6hBYhBOQ+WEYd/Hy/RGkV pZn6f8tZ/DuBBQJcH/EVAhkBAAoJEJn6f8tZ/DuB7BEH/iDWZEbVft2m2MT6SPjARzTupt/l xLLZ/Cl6n2US2hov5+fBbnR5xvECk/YCOfG9ICvKNlpFjceqNLRKStd8cmndnI+kDw91uNM2 hpL4aJMeW65XCHvqXlOLSwv5chBpXz9N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version: 1.0 In-Reply-To: <20190521015840.cztw2qxthh7xuutk@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/20/19 9:58 PM, Andres Freund wrote: > Hi Andrew, > > On 2019-03-30 16:42:16 -0400, Andrew Dunstan wrote: >> On some machines (*cough* Mingw *cough*) installs are very slow. We've >> ameliorated this by allowing temp installs to be reused, but the >> pg_upgrade Makefile never got the message. Here's a patch that does >> that. I'd like to backpatch it, at least to 9.5 where we switched the >> pg_upgrade location. The risk seems appropriately low and it only >> affects our test regime. > I'm confused as to why this was done as a purely optional path, rather > than just ripping out the pg_upgrade specific install? > > See also discussion around https://www.postgresql.org/message-id/21766.1558397960%40sss.pgh.pa.us > By specifying NO_TEMP_INSTALL you are in effect certifying that there is already a suitable temp install available. But that might well not be the case. In fact, there have been several iterations of code to get the buildfarm client to check reasonable reliably that there is such an install before it chooses to use the flag. Note that the buildfarm doesn't run "make check-world" for reasons I have explained in the past. NO_TEMP_INSTALL is particularly valuable in saving time when running the TAP tests, especially on Mingw. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services