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 1kxSv5-00060T-Bj for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2021 10:53:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxSv1-0003nR-LQ for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jan 2021 10:53:27 +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 1kxSv0-0003nK-RN for pgsql-hackers@lists.postgresql.org; Thu, 07 Jan 2021 10:53:27 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxSuv-0001Em-M1 for pgsql-hackers@lists.postgresql.org; Thu, 07 Jan 2021 10:53:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id A7C7519433A3; Thu, 7 Jan 2021 05:53:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 07 Jan 2021 05:53:19 -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=2oPvWQ8m4q2FKh9FNr+Z8szDZ9CUs4CPHSj/bTPE4 qg=; b=ZRFrzLPEHYfOAzmOCqGPz5excmZR83hBR9Q+0zsH2xip0pfrddZ7Gb6oE urVM5JSw6ZWTNUzA6kNfbkUZMPIfm8681rRLN3LQy22lG/vjeJfGiqGOvzeNYIV0 m2AWIL/qxd2ij6Y+S6Px/DNmXUEbe9uOt73HoMkjLMYFg+AKPXr8uuSxD6DNimKk h/C8pjT/cjIeWY64lSr+XsOXYtqG52tjX+zvlLWlX62rIvh3sG1JhlfD3IMABvnJ kkypLX7FZEE/l20M2iGw/nvtacWF5LNfChpi+a+jVDarAAoX3rlHI7GdSj1GG5DW B+8n+/7XXccnnC4ahaYPZc+8s2S8A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegvddgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjedvrddugedvnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b1488e.dip0.t-ipconnect.de [87.177.72.142]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E90124005C; Thu, 7 Jan 2021 05:53:18 -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: <798ee419-d9fc-075a-932c-2c16420eb39c@2ndquadrant.com> Date: Thu, 7 Jan 2021 11:53:17 +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 After pondering this again, I think we can go with initdb --no-instructions, as in your patch. As a minor nitpick, I would leave out the else printf(_("\nSuccess.\n")); in the --no-instructions case. (I don't know where the pg_upgrade part of this discussion is right now.) -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/