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 1kPonB-0008ER-V9 for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 15:22:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPonA-0005o9-Sr for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 15:22:16 +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 1kPonA-0005o2-MH for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 15:22:16 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPon8-0000qz-6x for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 15:22:16 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kPon5-0002Hp-E1; Tue, 06 Oct 2020 11:22:11 -0400 Date: Tue, 6 Oct 2020 11:22:11 -0400 From: Bruce Momjian To: Tom Lane Cc: Magnus Hagander , PostgreSQL Developers Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade Message-ID: <20201006152211.GC3686@momjian.us> References: <1868569.1601994682@sss.pgh.pa.us> <1870066.1601996773@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1870066.1601996773@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Oct 6, 2020 at 11:06:13AM -0400, Tom Lane wrote: > Magnus Hagander writes: > > On Tue, Oct 6, 2020 at 4:31 PM Tom Lane wrote: > >> Hm, does it matter? I think those wrappers send the output to /dev/null > >> anyway. > > > The debian ones don't, because they consider it useful information to the > > user. I'd say that it is, especially in the case of pg_upgrade. (Less so > > about initdb, but still a bit -- especially when creating secondary > > clusters) > > The redhat ones I believe sent it to a logfile, not to /dev/null. Meaning > > it's not in your face, but it still contains incorrect instructions. > > OK. FWIW, I'd vote for separate --no-instructions and --no-scripts > switches. Works for me. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee