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 1kg8bz-0001K7-R0 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2020 15:46:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kg8by-0000hG-Os for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Nov 2020 15:46:10 +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 1kg8by-0000h8-IE for pgsql-hackers@lists.postgresql.org; Fri, 20 Nov 2020 15:46:10 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kg8br-000643-3B for pgsql-hackers@lists.postgresql.org; Fri, 20 Nov 2020 15:46:09 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 5F45D1943569; Fri, 20 Nov 2020 10:46:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 20 Nov 2020 10:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=F6Cth8nZtcWyiy2Rl0YAZUWczotCQ0vR9hz9sUSOO zo=; b=nGPlZTLzHrr3GMMupRemob7Cs/Yx26WXFewoT9A5KWEdYWoUhrYk1zcQk sJ7vvJVJ+oMtlw8Za2sGg+mZxc2x9kWgq4y5Tkp1pM/pGaujnkTk5cfPt/PqZ8Lu MzA8ZC+bkOLGCL+af/H34SR4vMMg5fvw+wJvAvD3WN/Qd4TtVQUracfDVIrRaiV9 2+Bd9H4bL7iliSX8LAVP2F2HRfAN1xzULN34DVUjIDvQ5FSHRwYObRHaqVcA8FPg vtxl+QP3kd2WeveIzMiChSvl3ZU0G4Cy+4t2NxRRBl9czh5syeKAd5AxxzNCFsR2 cNNKpYIiURAyyYUfW0HLTJgY3qVxw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegtddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjeehrdelgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b14b5e.dip0.t-ipconnect.de [87.177.75.94]) by mail.messagingengine.com (Postfix) with ESMTPA id 40C153064AB7; Fri, 20 Nov 2020 10:46:00 -0500 (EST) Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade To: Magnus Hagander , Bruce Momjian References: <20201027105308.GI4951@momjian.us> <20201027114000.GL4951@momjian.us> Cc: PostgreSQL Developers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com> Date: Fri, 20 Nov 2020 16:45:59 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-11-09 13:05, Magnus Hagander wrote: > PFA a rebased version of this patch on top of what has happened since, > and changing the pg_upgrade parameter to be --no-scripts. It seems were are still finding out more nuances about pg_upgrade, but looking at initdb for moment, I think the solution for wrapper scripts is to just run initdb with >dev/null. Or maybe if that looks a bit too hackish, a --quiet option that turns everything on stdout off. I think initdb has gotten a bit too chatty over time. I think if it printed nothing on stdout by default and the current output would be some kind of verbose or debug mode, we wouldn't really lose much. With that in mind, I'm a bit concerned about adding options (and thus documentation surface area etc.) to select exactly which slice of the chattiness to omit. -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/