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 1linZv-0000My-Sd for pgsql-committers@arkaria.postgresql.org; Tue, 18 May 2021 00:27:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1linZt-0002me-KS for pgsql-committers@arkaria.postgresql.org; Tue, 18 May 2021 00:27:17 +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 1linZt-0002mW-EZ for pgsql-committers@lists.postgresql.org; Tue, 18 May 2021 00:27:17 +0000 Received: from [64.147.123.24] (helo=wout1-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1linZr-0000sK-6i for pgsql-committers@lists.postgresql.org; Tue, 18 May 2021 00:27:17 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id ACD02452; Mon, 17 May 2021 20:27:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 17 May 2021 20:27:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=giCy0G4/KhKwCGYZ6oxIgvSqFar KfAaupn1Ve80vItM=; b=N5i35EtyAgJCGz3pZt1vkyc5Z+dbWb/clLJo3yAHVzT vWJm2C+ac+7KbbTBp1lEp/0qxOp04q2VSfKSKS7d7CIjkKneB8u9QA8vWcDab6dd WxDmQozTBHyZ+EPE9lsPiHtwPbrURllXRLjoZyrQP29Q8WUuzjJ1hXN2iEFuZyys BnT4TXtw3Z051CuucmXlZravwfJq5FQY9YGLHjxTC8MuxLgNLEPzaXKOGhrZwDyo COof2/tmvitwFRvxaqKg9z2cRSSaOatjnM6zvFhwOQ4niSkcyRz0OrpjYwBmIWGd lpCROOpeo1XLuaOUOaNTpfRULXh4hdBqNFO1C+l89KQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=giCy0G 4/KhKwCGYZ6oxIgvSqFarKfAaupn1Ve80vItM=; b=rdLENls6NG4+6gKqQ7cigq AOX/I5k/uL9VGUaAmtRw67+OPfuftcGVUcwM9RJ1vFIkHjoGBvZOu8Ok8k0Cf3y7 JgqTRhiSwg2b+/K58Uf8dcZ12i9lfN6/kgD+preAIzjIOylGy5uv5rZvy19bZmuL s+D4yogWk5IL/dJ77cZtiQQJdzubtCOGk/fgjcOmumOIY8OT+AY7R75Kt7d9oHe+ 7nYQhT+a1i9X1E8Z2kO7fXlu4tka4G/dTNjvZvrcqCEJYd5pUYeM/IH2hkgrELlt x2RR//STiAJt2AlPKl+3OZYZa5HIZhRPPvY/B8k0F/eG6kQ5VN9kZXL+A7PptMWQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeiiedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfen ucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 17 May 2021 20:27:00 -0400 (EDT) Date: Tue, 18 May 2021 09:26:57 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres Message-ID: References: <2854388.1621284789@sss.pgh.pa.us> <2917892.1621288314@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XdJK8GZjurTYMEg+" Content-Disposition: inline In-Reply-To: <2917892.1621288314@sss.pgh.pa.us> X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.24 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --XdJK8GZjurTYMEg+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 17, 2021 at 05:51:54PM -0400, Tom Lane wrote: > I wrote: >> I think what we want to do is have this code invoked only in >> test directories that explicitly ask for it, say with a new >> "--make-testtablespace" switch for pg_regress. >=20 > Say, as attached. (Windows part is untested.) Thanks. I was going to produce something this morning, but you have been faster than me. One thing that's changing in this patch is that testtablespace would be created even if the input directory does not exist when using --make-testtablespace-dir. I would have kept the creation of the tablespace path within convert_sourcefiles_in() for this reason. Worth noting that snprintf() is used twice instead of once to build the tablespace path string. The Windows part works correctly. -- Michael --XdJK8GZjurTYMEg+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmCjCdEACgkQnvQgOdby QH1vpQ/+IpSKpyFoPPryaV93qJNObTRce5e3F2khzsPoMX9Cp7oK30ZNC+BW/k+9 z9fzHUKYKZmWAv598a9Tn6pQjBCN3tTI0gsDNrq/hinjZzNhyU3GizSeoek9X6vW YDpu3EEHwl26wYEFatMAeaZ01L8g83EIyJYhQerUcg1tQAInuHiyhre4vBZhX+zc oh0fQyNTv/iXZacot9UDXmlkA+ZnO8G4EVdPCbauffjV1Um5eqmjPIGIJOZbUOAD qWlPrmjAKhYLu/4lc+wF8wDZLTxQQFIVM/xdbu7jo0fVb9Np+a5qwbsn0TFz+94D dpiS/4dUr62SBbOEMyXcog7+HlfLppn9Dd3R72yd7QVb7Y7pKbMW7makVZuia9pL kKCak1IbUQLtdi3ARm1W1PuotGr3DAVt9OHco+wt6h/tuPHPBqdVbzYSijHGsMN+ CEVBN5bYYpNm3joZfKgW8lXwLKDm4Bwh/TqckxQ1OdHEQo+xs8MsnLUKWHmCBNE8 w4qpYXSwhwgN1cXvdijQJPHywGEJTL9FCS8YLrsJUCbNgigmxyTZXwI7K0oPjZLQ uK2H3M5QBU7ulYR9vk6UUMppfsn17H9+ZXKNW1/UP2QOv8f7M+HtcRaYPkSuAJW/ MTuaEOlVxItQwwj6A1Jfy0aIzsMQKMw0c07b34SMbZ5FqoUG5OU= =BeSe -----END PGP SIGNATURE----- --XdJK8GZjurTYMEg+--