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 1lio3c-0001eS-Ct for pgsql-committers@arkaria.postgresql.org; Tue, 18 May 2021 00:58:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lio3b-0002kv-BD for pgsql-committers@arkaria.postgresql.org; Tue, 18 May 2021 00:57:59 +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 1lio3b-0002kn-5U for pgsql-committers@lists.postgresql.org; Tue, 18 May 2021 00:57:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lio3Z-0007TF-1X for pgsql-committers@lists.postgresql.org; Tue, 18 May 2021 00:57:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 14I0vtNG2934411; Mon, 17 May 2021 20:57:55 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres In-reply-to: References: <2854388.1621284789@sss.pgh.pa.us> <2917892.1621288314@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Tue, 18 May 2021 09:26:57 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2934409.1621299475.1@sss.pgh.pa.us> Date: Mon, 17 May 2021 20:57:55 -0400 Message-ID: <2934410.1621299475@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Mon, May 17, 2021 at 05:51:54PM -0400, Tom Lane wrote: >> Say, as attached. (Windows part is untested.) > 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. Yeah, I do not see a reason for there to be a connection. It's not pg_regress' job to decide whether the testtablespace directory is needed or not. > Worth noting that snprintf() is used twice instead of once to build > the tablespace path string. Yeah. I considered making a global variable so that there'd be just one instance of that, but didn't think it amounted to less mess in the end. > The Windows part works correctly. Thanks for testing! I'll push this after the release is tagged. regards, tom lane