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 1nuEbo-00062Y-Au for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 14:37:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nuEbm-0007ez-VX for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 14:37:02 +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 1nuEbm-0007ep-5S for pgsql-hackers@lists.postgresql.org; Thu, 26 May 2022 14:37:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuEbd-0008LL-94 for pgsql-hackers@postgresql.org; Thu, 26 May 2022 14:37:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A2C775C0162; Thu, 26 May 2022 10:36:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 26 May 2022 10:36:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1653575810; x= 1653662210; bh=/Qs9UildefhJTUJc3s2iMYLnshjrc00jJk/NwkYZk/I=; b=V MljB1kecm7hCpvGnSrlIVq54uYia6Yai/zom7i53/ADZvF0iSvUKS8Sw3t5Uh49I ZUOmH9Excg09GXReIfvaLfCKvwb6qWY5t98e/RSGik49r3yqCcVWckLjZ9AVh2wW VPYpQUmq9p/UvUm34ZMmFVNRDtxwtro+hjspLiuYUtsdtNaBAddbqD3GxAK5FFTc WWa3EnP7opXOmfY3eWzfa0ItY+tkQ7CoF+ruMK71/BKBLdTeaRCioY47wXB651pI AXvvZw46idX18D58G4tCvdROzXeDAoGiMMCKFLfiHzlUEqzGWpDZWd9gb1ii78Me p75epcVhz3p9hmYWCywPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeejgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefh leetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 May 2022 10:36:49 -0400 (EDT) Message-ID: Date: Thu, 26 May 2022 16:36:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: pg_upgrade test writes to source directory Content-Language: en-US To: Michael Paquier Cc: pgsql-hackers References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 25.05.22 09:25, Michael Paquier wrote: >> It looks like an addition of >> >> chdir $ENV{TESTOUTDIR}; >> >> could fix it. Please check the patch. > I think that you mean TESTDIR, and not TESTOUTDIR? I chose TESTOUTDIR because it corresponds to the tmp_check directory, so that the output files of the pg_upgrade run are removed when the test artifacts are cleaned up. When using TESTDIR, the pg_upgrade output files end up in the build directory, which is less bad than the source directory, but still not ideal.