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 1likEk-00020w-5G for pgsql-committers@arkaria.postgresql.org; Mon, 17 May 2021 20:53:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1likEi-0003hy-EP for pgsql-committers@arkaria.postgresql.org; Mon, 17 May 2021 20:53:12 +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 1likEi-0003hq-8u for pgsql-committers@lists.postgresql.org; Mon, 17 May 2021 20:53:12 +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 1likEg-0005bI-AI for pgsql-committers@lists.postgresql.org; Mon, 17 May 2021 20:53:11 +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 14HKr9iu2854389; Mon, 17 May 2021 16:53:09 -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: Comments: In-reply-to Michael Paquier message dated "Wed, 10 Mar 2021 05:55:05 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2854387.1621284789.1@sss.pgh.pa.us> Date: Mon, 17 May 2021 16:53:09 -0400 Message-ID: <2854388.1621284789@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Move tablespace path re-creation from the makefiles to pg_regress So this didn't seem like a problem at the time, but while building beta1 tarballs I discovered that it leaves behind "testtablespace" subdirectories in various places where they aren't cleaned by "make distclean", resulting in scary noise in my diff against the tarballs: Only in /home/postgres/pgsql/contrib/dblink: testtablespace Only in /home/postgres/pgsql/contrib/file_fdw: testtablespace Only in /home/postgres/pgsql/src/pl/plpgsql/src: testtablespace This appears to be because pg_regress.c will now create the tablespace directory in any directory that has an "input" subdirectory (and that randomness is because somebody saw fit to drop the code into convert_sourcefiles_in(), where it surely has no business being, not least because that means it's run twice). (BTW, the reason we don't see git complaining about this seems to be that it doesn't complain about empty subdirectories.) 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. regards, tom lane