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 1j4WZG-0002Jx-FZ for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Feb 2020 21:07:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4WYH-0004SX-A3 for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Feb 2020 21:06:37 +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 1j4WYG-0004SO-UQ for pgsql-hackers@lists.postgresql.org; Wed, 19 Feb 2020 21:06:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4WYE-0007FL-Qa for pgsql-hackers@lists.postgresql.org; Wed, 19 Feb 2020 21:06:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01JL6X8b009978; Wed, 19 Feb 2020 16:06:33 -0500 From: Tom Lane To: Kyotaro Horiguchi cc: pgsql-hackers@lists.postgresql.org Subject: Re: pg_regress cleans up tablespace twice. In-reply-to: <20200219.142519.437573253063431435.horikyota.ntt@gmail.com> References: <20200219.142519.437573253063431435.horikyota.ntt@gmail.com> Comments: In-reply-to Kyotaro Horiguchi message dated "Wed, 19 Feb 2020 14:25:19 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9976.1582146393.1@sss.pgh.pa.us> Date: Wed, 19 Feb 2020 16:06:33 -0500 Message-ID: <9977.1582146393@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kyotaro Horiguchi writes: > But in the first place it comes from [1] and the comment says: >> * XXX it would be better if pg_regress.c had nothing at all to do with >> * testtablespace, and this were handled by a .BAT file or similar on >> * Windows. See pgsql-hackers discussion of 2008-01-18. > Is there any reason not to do that in vcregress.pl? I think the > commands other than 'check' don't needs this. I think the existing coding dates from before we had a Perl driver for this, or else we had it but there were other less-functional ways to replace "make check" on Windows. +1 for taking the code out of pg_regress.c --- but I'm not in a position to say whether the other part of your patch is sufficient. regards, tom lane