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 1lP0Fg-0003dL-NK for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 09:56:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lP0Fe-00055L-V0 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Mar 2021 09:56:34 +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 1lP0Fe-00055E-Op for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 09:56:34 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lP0Fc-00045j-Cu for pgsql-hackers@lists.postgresql.org; Wed, 24 Mar 2021 09:56:33 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1478:7c00:76e5:bff:fef3:7e00]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4F53Xs47kCz3Dwk; Wed, 24 Mar 2021 10:56:29 +0100 (CET) Date: Wed, 24 Mar 2021 10:56:29 +0100 From: Christoph Berg To: Michael Paquier Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Michael Paquier > So you basically mimicked the makefile rule that this commit removed > into your own test suite. Reverting the change does not really help, > because we'd be back to square one where there would be problems in > parallel runs for developers. Saying that, I would not mind adding an > option to pg_regress to control if this cleanup code is triggered or > not, say something like --no-tablespace-cleanup? Then, you could just > pass down the option by yourself before creating your tablespace path > as you wish. I don't think adding more snowflake code just for this use case makes sense, so I can stick to my workaround. I just wanted to point out that the only thing preventing the core testsuite from being run as a true client app is this tablespace thing, which might be a worthwhile fix on its own. Maybe creating the tablespace directory from within the testsuite would suffice? CREATE TABLE foo (t text); COPY foo FROM PROGRAM 'mkdir @testtablespace@'; CREATE TABLESPACE regress_tblspace LOCATION '@testtablespace@'; Christoph