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 1kPoXk-0007ap-DK for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 15:06:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPoXj-0001d4-8t for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Oct 2020 15:06:19 +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 1kPoXj-0001cQ-1y for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 15:06:19 +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 1kPoXg-0000jM-Fc for pgsql-hackers@lists.postgresql.org; Tue, 06 Oct 2020 15:06:18 +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 096F6DhG1870067; Tue, 6 Oct 2020 11:06:13 -0400 From: Tom Lane To: Magnus Hagander cc: PostgreSQL Developers Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade In-reply-to: References: <1868569.1601994682@sss.pgh.pa.us> Comments: In-reply-to Magnus Hagander message dated "Tue, 06 Oct 2020 17:04:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1870065.1601996773.1@sss.pgh.pa.us> Date: Tue, 06 Oct 2020 11:06:13 -0400 Message-ID: <1870066.1601996773@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. regards, tom lane