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 1n02yv-0001Jt-Nw for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Dec 2021 14:52:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n02yt-0000J2-JI for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Dec 2021 14:52:39 +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 1n02yt-0000It-9z for pgsql-hackers@lists.postgresql.org; Wed, 22 Dec 2021 14:52:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n02yn-0001qB-3g for pgsql-hackers@lists.postgresql.org; Wed, 22 Dec 2021 14:52:38 +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 1BMEqQWP238202; Wed, 22 Dec 2021 09:52:26 -0500 From: Tom Lane To: Michael Paquier cc: Justin Pryzby , Daniel Gustafsson , Peter Eisentraut , Andrew Dunstan , Bruce Momjian , pgsql-hackers@lists.postgresql.org Subject: Re: pg_upgrade should truncate/remove its logs before running In-reply-to: References: <711370.1639603043@sss.pgh.pa.us> <20211215212343.GE4440@momjian.us> <20211215221310.GU17618@telsasoft.com> <20211217172113.GL17618@telsasoft.com> <20211221033926.GX17618@telsasoft.com> Comments: In-reply-to Michael Paquier message dated "Wed, 22 Dec 2021 16:47:12 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <238200.1640184746.1@sss.pgh.pa.us> Date: Wed, 22 Dec 2021 09:52:26 -0500 Message-ID: <238201.1640184746@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, Dec 20, 2021 at 09:39:26PM -0600, Justin Pryzby wrote: >> Are you suggesting to remove these ? >> -/pg_upgrade_internal.log >> -/loadable_libraries.txt > Yep, it looks so as these are part of the logs, the second one being a > failure state. >> -/reindex_hash.sql > But this one is not, no? I'd like to get to a state where there's just one thing to "rm -rf" to clean up after any pg_upgrade run. If we continue to leave the we-suggest-you-run-these scripts loose in $CWD then we've not really improved things much. Perhaps there'd be merit in putting log files into an additional subdirectory of that output directory, like pg_upgrade_output.d/logs/foo.log, so that the more-ignorable output files would be separated from the less-ignorable ones. Or perhaps that's just gilding the lily. regards, tom lane