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 1oTOFl-00033Y-N0 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 13:59:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTOFj-0007SZ-Kl for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Aug 2022 13:59:35 +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 1oTOFj-0007SP-BQ for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 13:59:35 +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 1oTOFc-0005cG-KV for pgsql-hackers@lists.postgresql.org; Wed, 31 Aug 2022 13:59:34 +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 27VDxRG34061928; Wed, 31 Aug 2022 09:59:27 -0400 From: Tom Lane To: Daniel Gustafsson cc: PostgreSQL Hackers Subject: Re: pg_upgrade generated files in subdir follow-up In-reply-to: <181A6DA8-3B7F-4B71-82D5-363FF0146820@yesql.se> References: <181A6DA8-3B7F-4B71-82D5-363FF0146820@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Wed, 31 Aug 2022 14:09:06 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4061926.1661954367.1@sss.pgh.pa.us> Date: Wed, 31 Aug 2022 09:59:27 -0400 Message-ID: <4061927.1661954367@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson writes: > Commit 38bfae36526 moved the .txt files pg_upgrade generates to a separate > subdir, but there are a few left which are written to cwd. The thread > resulting in that patch doesn't discuss these files specifically so it seems > they are just an oversight. Unless I'm missing something. > Should something the attached be applied to ensure all generated files are > placed in the subdirectory? It certainly looks inconsistent ATM. I wondered if maybe the plan was to put routine output into the log directory but problem-reporting files into cwd --- but that isn't what's happening now. As long as we report the path to where the file is, I don't see a reason not to put problem-reporting files in the subdir too. regards, tom lane